Sha256: d377821c2c806d033cda8930ace8255f89132e38d330ffe2bbffdf17632411c6

Contents?: true

Size: 694 Bytes

Versions: 144

Compression:

Stored size: 694 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 file='file --keep-going --raw'"
  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 -b'"
  f.puts "alias vim='vim -i NONE -b'"
  f.puts "alias tmux='TERM=screen-256color tmux'"
end
system("sudo chmod 755 #{alias_file}")

Version data entries

144 entries across 144 versions & 1 rubygems

Version Path
pwn-0.5.153 packer/provisioners/aliases.rb
pwn-0.5.152 packer/provisioners/aliases.rb
pwn-0.5.151 packer/provisioners/aliases.rb
pwn-0.5.150 packer/provisioners/aliases.rb
pwn-0.5.106 packer/provisioners/aliases.rb
pwn-0.5.105 packer/provisioners/aliases.rb
pwn-0.5.104 packer/provisioners/aliases.rb
pwn-0.5.103 packer/provisioners/aliases.rb
pwn-0.5.102 packer/provisioners/aliases.rb
pwn-0.5.101 packer/provisioners/aliases.rb
pwn-0.5.100 packer/provisioners/aliases.rb
pwn-0.5.99 packer/provisioners/aliases.rb
pwn-0.5.98 packer/provisioners/aliases.rb
pwn-0.5.97 packer/provisioners/aliases.rb
pwn-0.5.96 packer/provisioners/aliases.rb
pwn-0.5.95 packer/provisioners/aliases.rb
pwn-0.5.94 packer/provisioners/aliases.rb
pwn-0.5.93 packer/provisioners/aliases.rb
pwn-0.5.92 packer/provisioners/aliases.rb
pwn-0.5.91 packer/provisioners/aliases.rb