Sha256: 612ffeacbc2fe2aca06adda9f13352b9adfff2ae4a83844a7face0b9d8ac6f24

Contents?: true

Size: 639 Bytes

Versions: 344

Compression:

Stored size: 639 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

alias_file = '/etc/profile.d/aliases.sh'
system("sudo touch #{alias_file}")
system("sudo chmod 777 #{alias_file}")
File.open(alias_file, 'w') do |f|
  f.puts '#!/bin/bash'
  f.puts "alias grep='grep --color=auto'"
  f.puts "alias kpid='kill -15'"
  f.puts "alias ls='ls --color=auto'"
  f.puts "alias phantomjs='export QT_QPA_PLATFORM=offscreen; phantomjs'"
  f.puts "alias prep='ps -ef | grep'"
  f.puts "alias sup='sudo -i'"
  f.puts "alias vi='vim -i NONE'"
  f.puts "alias vim='vim -i NONE'"
  f.puts "alias tmux='TERM=xterm-256color tmux'"
end
system("sudo chmod 755 #{alias_file}")

Version data entries

344 entries across 344 versions & 1 rubygems

Version Path
pwn-0.4.634 packer/provisioners/aliases.rb
pwn-0.4.633 packer/provisioners/aliases.rb
pwn-0.4.632 packer/provisioners/aliases.rb
pwn-0.4.631 packer/provisioners/aliases.rb