2013-11-24 17:52:33 +00:00
|
|
|
# always use macvim but for 'vim'
|
|
|
|
alias vim=$EDITOR
|
|
|
|
alias vi=$EDITOR
|
|
|
|
alias v=$EDITOR
|
|
|
|
alias vd='vimdiff'
|
|
|
|
alias diff='vimdiff'
|
|
|
|
alias vf='vifm'
|
2013-07-19 17:17:05 +00:00
|
|
|
|
|
|
|
|
2013-11-24 17:52:33 +00:00
|
|
|
# Easier navigation: .., ..., ~ and -
|
|
|
|
alias ~="cd ~"
|
|
|
|
alias ..='cd ..'
|
|
|
|
alias ...='cd ../..'
|
|
|
|
alias ....='cd ../../..'
|
|
|
|
alias .....='cd ../../../..'
|
|
|
|
alias e='exit'
|
|
|
|
alias md='mkdir -p'
|
|
|
|
alias rd=rmdir
|
|
|
|
alias d='dirs -v | head -10'
|
|
|
|
|
|
|
|
|
|
|
|
# gnu coreutils
|
|
|
|
alias ls="gls -al --color=auto"
|
|
|
|
alias l='gls -al --color=auto'
|
2013-07-19 17:17:05 +00:00
|
|
|
|
|
|
|
|
2013-11-24 17:52:33 +00:00
|
|
|
# Gitty gitgit
|
|
|
|
alias g="git"
|
|
|
|
alias gst="git status"
|
|
|
|
alias ggpl='git pull origin $(current_branch)'
|
|
|
|
alias ggps='git push origin $(current_branch)'
|
|
|
|
alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
|
2013-07-19 17:17:05 +00:00
|
|
|
alias gitrm='git rm $(git ls-files --deleted)'
|
|
|
|
alias gsmu='git submodule init && git submodule update'
|
2013-09-03 16:26:14 +00:00
|
|
|
alias gsvn='git checkout master && git svn fetch && git merge dev && git svn rebase && git svn dcommit'
|
2013-11-24 17:52:33 +00:00
|
|
|
alias gmo='$EDITOR $(git ls-files -m)'
|
|
|
|
|
|
|
|
|
|
|
|
# aliases for apache and mysql
|
2014-01-03 19:25:18 +00:00
|
|
|
alias apachestart='sudo apachectl start'
|
|
|
|
alias apachestop='sudo apachectl stop'
|
2013-11-24 17:52:33 +00:00
|
|
|
alias mysqlstart='mysql.server start'
|
|
|
|
alias mysqlstop='mysql.server stop'
|
|
|
|
alias dev='apachestart && mysqlstart'
|
|
|
|
alias devs='apachestop && mysqlstop'
|
|
|
|
alias devr='devs && dev'
|
2013-07-19 17:17:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
# grunt
|
|
|
|
alias gr='grunt'
|
|
|
|
alias grw='grunt watch'
|
|
|
|
alias grd='grunt deploy'
|
|
|
|
|
|
|
|
|
|
|
|
# tmux
|
|
|
|
alias t='tmux -u -2'
|
|
|
|
alias ta='tmux attach'
|
|
|
|
|
|
|
|
|
|
|
|
# random usefull stuff
|
2013-12-06 16:28:10 +00:00
|
|
|
alias dnsflush='sudo dscacheutil -flushcache'
|
2013-07-19 17:17:05 +00:00
|
|
|
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"
|
|
|
|
alias psa="ps aux"
|
|
|
|
|
|
|
|
|
|
|
|
# all in one homebrew, gem update commands
|
|
|
|
alias brewup='brew update && brew upgrade && brew cleanup && brew linkapps'
|
|
|
|
alias gemup='gem update --system && gem update && gem cleanup'
|
2013-12-07 14:33:30 +00:00
|
|
|
alias npmup='npm -g cache clean && npm -g update && npm-check-updates -u && npm install'
|
2013-12-04 10:51:06 +00:00
|
|
|
alias sysup='sudo softwareupdate -i -a'
|
2013-12-07 14:33:30 +00:00
|
|
|
alias upall='sysup && brewup && gemup && npmup'
|
2013-07-19 17:17:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
# easy hosts / apache / php editing
|
2013-12-04 10:51:06 +00:00
|
|
|
alias hosts='sudo vim /etc/hosts'
|
2014-01-03 19:25:18 +00:00
|
|
|
alias vhosts='sudo vim /usr/local/etc/apache2/extra/httpd-vhosts.conf'
|
2014-01-15 18:35:18 +00:00
|
|
|
alias php55ini='vim /usr/local/etc/php/5.5/php.ini'
|
|
|
|
alias php54ini='vim /usr/local/etc/php/5.4/php.ini'
|
2014-01-03 19:25:18 +00:00
|
|
|
alias http='vim /usr/local/etc/apache2/httpd.conf'
|
2013-07-19 17:17:05 +00:00
|
|
|
|
|
|
|
|
2013-07-19 18:40:08 +00:00
|
|
|
# vagrant stuff
|
2014-01-15 18:35:18 +00:00
|
|
|
alias vu='vagrant up'
|
|
|
|
alias vr='vagrant reload'
|
|
|
|
alias vp='vagrant provision'
|
|
|
|
alias vh='vagrant halt'
|
2013-07-19 18:40:08 +00:00
|
|
|
|
|
|
|
|
2013-07-19 17:17:05 +00:00
|
|
|
# often used folder shortcuts
|
|
|
|
alias drop='cd ~/Dropbox && ls -al'
|
|
|
|
alias web='cd ~/Sites && ls -al'
|
|
|
|
alias rep='cd ~/Repositories && ls -al'
|
|
|
|
alias dot='cd ~/Dotfiles && ls -al'
|
|
|
|
|
|
|
|
|