Skip to content

Instantly share code, notes, and snippets.

@tncbbthositg
Last active August 29, 2015 14:13
Show Gist options
  • Save tncbbthositg/5912c4cd33c6c6b1ae4e to your computer and use it in GitHub Desktop.
Save tncbbthositg/5912c4cd33c6c6b1ae4e to your computer and use it in GitHub Desktop.
A place to keep my bash profile helpers here and there
alias st="git status"
alias be="bundle exec"
alias ber="be rake"
alias srsly='eval "sudo `history -p \!\!`"'
alias yolo='srsly'
kill_all() {
ps aux | grep $1 | grep -v grep
for pid in `ps aux | grep $1 | grep -v grep | awk '{print $2}'`; do
read -p "Do you want to kill $pid (y/n)? " yn
case $yn in
[Yy]* ) kill -9 $pid;
esac
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment