Skip to content

Instantly share code, notes, and snippets.

@dallas dallas/aliases.zsh
Created Dec 19, 2012

Embed
What would you like to do?
zshell aliases
# Shell commands
alias @='pwd'
# Bundler
alias brake='bundle exec rake'
alias be='bundle exec'
# Rails 2
alias sc='script/console'
alias sg='script/generate'
alias ss='script/server'
# Rails 3
alias rc='bundle exec rails console'
alias rg='bundle exec rails generate'
alias rs='bundle exec rails server'
# Rack app logs
alias dlog='tail -f log/development.log'
alias logs='tail -f log/*.log'
# Passenger
alias rst='touch tmp/restart.txt'
# Apache
alias arst='sudo apachectl graceful'
alias slog='tail -f /private/var/log/apache2/error_log'
alias slogs='tail -f /private/var/log/apache2/*log'
# Hub
alias git=hub
# Git
alias gai='git add --interactive'
alias gap='git add --patch'
alias gba='git branch -a'
alias gbd='git branch -d'
alias gbD='git branch -D'
alias gbr='git branch'
alias gbu='git branch --set-upstream'
alias gca='git commit -a -v'
alias gcb='git checkout -b'
alias gci='git commit -v'
alias gco='git checkout'
alias gcp='git cherry-pick'
alias gdf='git diff | edit'
alias gdf-gist='git diff | gist -t diff -p'
alias gfh='git fetch -v -p'
alias glg='git log'
alias gmg='git merge'
alias gmv='git mv'
alias gpl='git pull'
alias gpr='git pull --rebase'
alias gps='git push'
alias gra='git remote add'
alias grb='git rebase -v'
alias grm='git rm'
alias grp='git remote prune'
alias grt='git remote'
alias gsa='git stash apply'
alias gsb='git submodule'
alias gsd='git stash drop'
alias gsh='git stash'
alias gsi='git submodule update --init'
alias gsl='git stash list'
alias gsp='git stash pop'
alias gst='git status'
alias gsu='git submodule update'
alias gtg='git tag'
alias gup='git fetch && git rebase'
# Git-SVN
alias sbr='git svn branch'
alias sci='git commit -v'
alias scl='git svn clone'
alias sco='git checkout'
alias sfh='git svn fetch'
alias slg='git svn log'
alias smg='git merge git-svn'
alias sps='git svn dcommit'
alias srb='git svn rebase'
# Misc.
alias cuke='bundle exec cucumber'
alias clot='bundle exec c10t'
# Simple Python HTTP Server
alias pyserv='python -m SimpleHTTPServer'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.