dotfiles/rc
2012-04-11 09:56:27 -07:00

39 lines
916 B
Bash

# .rc
# vim: ft=zsh
# Generic interactive shell setup
# Eryn Wells <eryn@erynwells.me>
which gls &>/dev/null
if [[ $? -eq 0 ]]; then
lsbin='gls'
else
lsbin='ls'
fi
alias ls="$lsbin --color=auto"
alias la="$lsbin -A --color=auto"
alias ll="$lsbin -l --color=auto"
alias l.="$lsbin -d --color=auto .*"
alias j='jobs'
alias h='history'
alias df='df -h'
alias du='du -h'
alias g='git'
alias l='ledger'
alias today='date +%Y-%m-%d'
alias addkey="ssh-agent ~/.ssh/id_rsa"
alias pprint-json="python -c 'import sys,json;print json.dumps(json.load(sys.stdin), indent=2)'"
which osascript &>/dev/null
if [[ $? -eq 0 ]]; then
alias itp="osascript $HOME/Code/AppleScripts/iTunes/previous-track.scpt"
alias itn="osascript $HOME/Code/AppleScripts/iTunes/next-track.scpt"
alias ito="osascript $HOME/Code/AppleScripts/iTunes/toggle.scpt"
fi
if [[ -e $HOME/.rc-local ]]; then
source $HOME/.rc-local
fi