dotfiles/shells/common/aliases.sh

20 lines
614 B
Bash

which hub &>/dev/null && alias git='hub'
alias cdr='cd ./$(git rev-parse --show-cdup)'
# 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"
alias webshare='python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"'
alias pubkeys="cat $HOME/.ssh/*.pub"
alias colorslist="set | egrep 'COLOR_\w*'" # lists all the colors
alias jsonify='python -mjson.tool'
if [ -n "$SSH_CONNECTION" ]; then
# Never open GUI vim when SSHd into a box
alias mvim='vim'
alias gvim='vim'
fi