Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

97 lines (80 sloc) 2.747 kb
# Path to your oh-my-zsh configuration.
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# Set to this to use case-sensitive completion
# Comment this out to disable weekly auto-update checks
# Uncomment following line if you want to disable colors in ls
# Uncomment following line if you want to disable autosetting terminal title.
# Uncomment following line if you want red dots to be displayed while waiting for completion
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(battery brew django extract git node npm osx pip python ssh-agent gpg-agent)
source $ZSH/
# z command, courtesy of
source $ZSH/../lib/
function precmd() {
# keep track of directories that are popular
_z --add "$(pwd -P)"
# vim aliases
alias v='mvim -v'
alias vim='mvim -v'
alias rmv='find . -type f -regex ".*\.sw[pon]" -exec rm -f {} \;'
# git aliases
alias gd='git diff'
alias gdc='git diff --cached'
alias gl='git log'
alias gf='git fetch'
alias gfk='git fetch karthikv'
alias gfo='git fetch origin'
alias gr='git rebase'
alias gro='git rebase origin/$(current_branch)'
alias gmo='git merge origin/$(current_branch)'
alias gcb='git checkout -b'
alias gpo='git push -u origin $(current_branch)'
alias gpk='git push -u karthikv $(current_branch)'
alias grs='git reset --soft'
alias grh='git reset --hard'
alias grho='git reset --hard origin/$(current_branch)'
alias grhk='git reset --hard karthikv/$(current_branch)'
alias gc='git checkout'
alias gsh='git stash'
alias gsha='git stash apply'
alias gshl='git stash list'
alias gshp='git stash pop'
gdcv() { git diff --cached -w "$@" | view - }
alias gbd='git branch -d'
alias gbD='git branch -D'
alias grbdo='git push origin'
alias grbdk='git push karthikv'
alias gra='git remote add'
alias grm='git remote rm'
alias gcl='git changelog'
# hub aliases
alias hc='hub create'
alias hb='hub browse'
alias hp='hub pull-request'
alias hpi='hub pull-request -i'
# node
alias ndm='nodemon'
# easy directory switching
alias ...='../..'
alias ....='../../..'
alias .....='../../../..'
# nodefront
alias nodefront='~/Active/nodefront/nodefront.js'
alias nf='nodefront'
Jump to Line
Something went wrong with that request. Please try again.