Last active
August 29, 2015 14:13
-
-
Save tncbbthositg/5912c4cd33c6c6b1ae4e to your computer and use it in GitHub Desktop.
A place to keep my bash profile helpers here and there
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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