# .rc # vim: ft=zsh # Generic interactive shell setup # Eryn Wells . $HOME/.shell-functions alias j='jobs' alias h='history' alias df='df -h' alias du='du -h' alias g='git' alias v='view' binary_exists ledger && alias l='ledger' alias cux='chmod u+x' alias cuw='chmod u+w' alias cur='chmod u+r' 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)'" case $SYS in darwin) if binary_exists gls; then ls='gls' ls_options="--color=auto" else ls='ls' ls_options='-G' fi alias ls="$ls $ls_options" alias la="$ls -A $ls_options" alias ll="$ls -l $ls_options" binary_exists gdircolors && alias dircolors='gdircolors' ;; linux) alias ls="ls --color=auto" alias la="ls -A --color=auto" alias ll="ls -l --color=auto" alias l.="ls -d --color=auto .*" ;; *) print_error "What system %Bis%b this, anyway?" ;; esac [ -e $HOME/.rc.local ] && source $HOME/.rc.local