Find file
Fetching contributors…
Cannot retrieve contributors at this time
171 lines (135 sloc) 4.43 KB
# Path to your oh-my-zsh configuration.
if [ -s $HOME/.oh-my-zsh-custom ]; then
# 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.
if [ -n $ZSH_CUSTOM ] && [ -f $ZSH_CUSTOM/`whoami`.zsh-theme ]; then
# 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=(git rbenv ruby gem rails brew osx bundler npm tmuxinator)
DISABLE_UPDATE_PROMPT=true # will auto update without prompt
#DISABLE_AUTO_UPDATE="true" # will disable auto updates entirely
source $ZSH/
unsetopt correct_all
# Customize to your needs...
export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
# general
alias la="ls -lach"
alias lsd="ls | grep ^d"
which ack >> /dev/null || alias ack=ack-grep
# global aliases
alias -g H='| head'
alias -g T='| tail'
alias -g G='| ack'
alias -g L="| less"
alias -g M="| most"
alias -g B="&|"
alias -g HL="--help"
alias -g LL="2>&1 | less"
alias -g CA="2>&1 | cat -A"
alias -g NE="2> /dev/null"
alias -g NUL="> /dev/null 2>&1"
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ......='cd ../../../../..'
alias .......='cd ../../../../../..'
alias ll="ls -l"
if which brew &> /dev/null; then
alias i="brew install"
alias up-all="brew upgrade --all"
alias up="brew upgrade"
alias un="brew uninstall"
elif which apt-get &> /dev/null; then
alias i="sudo apt-get install"
alias up="sudo apt-get upgrade"
alias up-all=up
alias un="sudo apt-get remove"
alias gi="gem install"
alias refreshctags="ack -f | ctags -L - && ack -f >| cscope.files && cscope -b -q"
alias sp=spork
alias r=rake
alias b=bundle
alias be='bundle exec'
export HISTFILE=~/.zhistory
# git aliases
#alias gst='git st'
#alias gl='git pull'
#alias gp='git push'
#alias gd='git diff | mate'
#alias gc='git commit -v'
#alias gca='git commit -v -a'
#alias gb='git branch'
#alias gba='git branch -a'
#alias glg='git lg'
# directory options
setopt auto_cd
setopt auto_pushd
# paths -------------------------------------------------------
export PATH="$HOME/.rbenv/bin:$PATH"
export PATH="$HOME/bin:$PATH"
export PATH="./bin:$PATH"
export PATH="./node_modules/.bin:$PATH"
alias vi=vim
alias ep="vim ~/.zshrc && source ~/.zshrc"
alias eplocal="vim ~/.zshrc.local && source ~/.zshrc.local"
export EDITOR="vim"
if [ -f /usr/local/bin/nvim ]; then
alias vim="nvim"
export EDITOR="nvim"
export LESS='-RM' # -R: print ANSI color escapes directly to the screen
# -M: use very verbose prompt, with pos/%
# folder aliases
[[ -e ~/.zshrc.local ]] && source ~/.zshrc.local
# quick access to directories
# softlinks (e.g. rspec) created in the directory ~/.soft_links will
# be accessible as ~rspec from anywhere
if [ -d ~/.soft_links ]; then
for i in $HOME/.soft_links/*; do
soft_link=`basename $i`;
hash -d $soft_link="$i"
title_manual() {
print -Pn "\e]1;$1\a"
eval "$(thefuck --alias)"
# rbenv
export RBENV_ROOT=$HOME/.rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
export PATH=./bin:~/.bin:$PATH
export JRUBY_OPTS=--1.9
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
which thefuck > /dev/null 2>&1 && alias fuck='eval $(thefuck $(fc -ln -1))'
[[ -s $HOME/.nvm/ ]] && . $HOME/.nvm/ # This loads NVM
# added by travis gem
[ -f /Users/srushti/.travis/ ] && source /Users/srushti/.travis/
test -e ${HOME}/.iterm2_shell_integration.zsh && source ${HOME}/.iterm2_shell_integration.zsh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh