helm/zsh/aliases

77 lines
1.3 KiB
Plaintext
Raw Normal View History

2013-03-16 10:31:51 -07:00
#############
# Aliases #
#############
2013-03-03 05:49:37 -08:00
2013-08-01 23:38:33 -07:00
if is_mac; then
alias ls='ls -G'
else
alias ls='ls -G --color'
fi
2013-08-03 13:00:57 -07:00
alias l='ls -1'
2013-03-03 05:49:37 -08:00
alias ll='ls -l'
alias la='ls -la'
2013-03-16 11:29:46 -07:00
alias l.='ls -Ad .*'
alias du='du -h -d 1'
2013-03-17 19:49:25 -07:00
alias q='exit'
alias sha1='openssl sha1'
alias mkdir='mkdir -pv'
# Resume download if possible
alias wget='wget -c'
2013-03-03 05:49:37 -08:00
2013-03-17 11:42:34 -07:00
alias rb='ruby'
alias py='python'
alias js='node'
2013-07-31 09:10:08 -07:00
if is_mac; then
alias love="/Applications/love.app/Contents/MacOS/love"
fi
2013-03-03 05:49:37 -08:00
# tmux
2013-03-17 19:23:48 -07:00
alias t='tmux'
alias tn='tmux new -s'
alias ta='tmux attach -t'
alias tl='tmux list-sessions'
alias td='tmux detach'
# git
2013-08-04 02:04:22 -07:00
# On top of oh-my-zsh's git aliases
alias gs='git status'
alias gst='git stash'
2013-03-16 11:29:46 -07:00
alias gap='git add -p'
2013-08-04 02:04:22 -07:00
alias gf='git ls-files | grep -i'
2013-03-17 19:49:25 -07:00
alias gt='git tag'
2013-08-04 02:04:22 -07:00
alias gtl='git describe --tags --abbrev=0'
2013-03-03 05:49:37 -08:00
# Laravel
alias artisan='php artisan'
alias bob='php artisan bob::build'
# debug
alias header='curl -I'
# directory shortcuts
2013-03-22 11:56:06 -07:00
alias dot='cd ~/.dotfiles'
2013-03-23 01:29:56 -07:00
if is_linux; then
# iptables
alias ipt='sudo iptables'
elif is_mac; then
2013-10-01 15:02:32 -07:00
alias b='brew'
2013-03-22 11:49:23 -07:00
alias brewp='cd `brew --prefix`'
fi
2013-03-23 01:29:56 -07:00
# vim
2013-07-31 09:10:08 -07:00
if [[ ! -n $SSH_CLIENT ]]; then
if command_exists mvim; then
alias v='mvim'
else
alias v='gvim'
fi
2013-03-23 01:29:56 -07:00
else
alias v='vim'
fi
2013-05-05 15:14:15 -07:00
# vagrant
alias va='vagrant'
2013-03-22 18:10:59 -07:00
# vim:set ft=zsh: