2013-03-16 10:31:51 -07:00
|
|
|
#############
|
|
|
|
# Aliases #
|
|
|
|
#############
|
2013-03-03 05:49:37 -08:00
|
|
|
|
2013-03-21 00:07:56 -07:00
|
|
|
alias ls='ls -G'
|
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'
|
2013-03-22 18:12:07 -07:00
|
|
|
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-22 18:12:07 -07:00
|
|
|
# Safety nets
|
|
|
|
alias mv='mv -i'
|
|
|
|
alias cp='cp -i'
|
|
|
|
alias ln='ln -i'
|
|
|
|
# do not delete / or prompt if deleting more than 3 files at a time #
|
|
|
|
alias rm='rm -I --preserve-root'
|
|
|
|
|
|
|
|
alias chown='chown --preserve-root'
|
|
|
|
alias chmod='chmod --preserve-root'
|
|
|
|
alias chgrp='chgrp --preserve-root'
|
|
|
|
|
|
|
|
# vim
|
2013-03-22 10:15:50 -07:00
|
|
|
if command_exists mvim; then
|
2013-03-17 20:48:21 -07:00
|
|
|
alias v='mvim'
|
|
|
|
else
|
|
|
|
alias v='vim'
|
|
|
|
fi
|
2013-03-17 11:42:34 -07:00
|
|
|
alias rb='ruby'
|
|
|
|
alias py='python'
|
|
|
|
alias js='node'
|
2013-03-03 05:49:37 -08:00
|
|
|
|
2013-03-17 19:23:48 -07:00
|
|
|
# Tmux #########################
|
|
|
|
alias t='tmux'
|
|
|
|
alias tn='tmux new -s'
|
|
|
|
alias ta='tmux attach -t'
|
|
|
|
alias tl='tmux list-sessions'
|
|
|
|
alias td='tmux detach'
|
|
|
|
|
2013-03-16 10:31:51 -07:00
|
|
|
# Git ##########################
|
|
|
|
# I know the git oh-my-zsh plugin has most of these, but
|
2013-03-16 11:29:46 -07:00
|
|
|
# I prefer to specify my own. Check gitconfig to see what
|
|
|
|
# the shorthand commands do.
|
2013-03-03 05:49:37 -08:00
|
|
|
alias g='git'
|
2013-03-16 11:29:46 -07:00
|
|
|
alias ga='git add'
|
|
|
|
alias gap='git add -p'
|
|
|
|
alias gc='git commit'
|
|
|
|
alias gs='git s'
|
|
|
|
alias gl='git ll'
|
|
|
|
alias gf='git f'
|
|
|
|
alias gg='git grep -Ii'
|
2013-03-17 19:49:25 -07:00
|
|
|
alias gt='git tag'
|
2013-03-16 11:29:46 -07:00
|
|
|
alias gd='git difftool'
|
|
|
|
alias gdl="git ll -1"
|
|
|
|
alias gr='git reset'
|
|
|
|
alias gbr='git br'
|
2013-03-03 05:49:37 -08:00
|
|
|
|
2013-03-22 11:49:23 -07:00
|
|
|
# Moving around ################
|
2013-03-22 11:56:06 -07:00
|
|
|
alias dot='cd ~/.dotfiles'
|
2013-03-22 11:49:23 -07:00
|
|
|
if command_exists "brew"; then
|
|
|
|
alias brewp='cd `brew --prefix`'
|
|
|
|
fi
|
|
|
|
|
2013-03-22 18:10:59 -07:00
|
|
|
# vim:set ft=zsh:
|