dotfiles/shells/common/aliases.sh

20 lines
614 B
Bash
Raw Normal View History

2013-04-03 08:29:28 +11:00
which hub &>/dev/null && alias git='hub'
2011-02-21 15:54:41 +11:00
2011-10-19 14:27:52 +11:00
alias cdr='cd ./$(git rev-parse --show-cdup)'
2009-03-20 00:08:06 +11:00
# useful command to find what you should be aliasing:
alias profileme="history | awk '{print \$2}' | awk 'BEGIN{FS=\"|\"}{print \$1}' | sort | uniq -c | sort -n | tail -n 20 | sort -nr"
2009-06-10 13:02:44 +10:00
alias webshare='python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"'
2009-03-20 00:08:06 +11:00
alias pubkeys="cat $HOME/.ssh/*.pub"
alias colorslist="set | egrep 'COLOR_\w*'" # lists all the colors
alias jsonify='python -mjson.tool'
2011-02-08 22:24:35 +11:00
if [ -n "$SSH_CONNECTION" ]; then
# Never open GUI vim when SSHd into a box
alias mvim='vim'
alias gvim='vim'
fi