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.981 packer/provisioners/aliases.rb
pwn-0.4.980 packer/provisioners/aliases.rb
pwn-0.4.979 packer/provisioners/aliases.rb
pwn-0.4.978 packer/provisioners/aliases.rb
pwn-0.4.977 packer/provisioners/aliases.rb
pwn-0.4.976 packer/provisioners/aliases.rb
pwn-0.4.975 packer/provisioners/aliases.rb
pwn-0.4.974 packer/provisioners/aliases.rb
pwn-0.4.973 packer/provisioners/aliases.rb
pwn-0.4.972 packer/provisioners/aliases.rb
pwn-0.4.971 packer/provisioners/aliases.rb
pwn-0.4.970 packer/provisioners/aliases.rb
pwn-0.4.969 packer/provisioners/aliases.rb
pwn-0.4.968 packer/provisioners/aliases.rb
pwn-0.4.967 packer/provisioners/aliases.rb
pwn-0.4.966 packer/provisioners/aliases.rb
pwn-0.4.965 packer/provisioners/aliases.rb
pwn-0.4.964 packer/provisioners/aliases.rb
pwn-0.4.963 packer/provisioners/aliases.rb
pwn-0.4.962 packer/provisioners/aliases.rb