Skip to content

Instantly share code, notes, and snippets.

@hindenbug
Created March 3, 2014 06:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hindenbug/9319333 to your computer and use it in GitHub Desktop.
Save hindenbug/9319333 to your computer and use it in GitHub Desktop.
zshrc
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
eval "$(fasd --init zsh-ccomp zsh-ccomp-install posix-alias zsh-hook)"
export PYTHONSTARTUP=~/.pythonrc
export JAVA_HOME=$(/usr/libexec/java_home)
#source ~/.rvm/gems/ruby-1.9.3-p429/tmuxinator/completion/tmuxinator.zsh
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/usr/local/sbin
export PATH=~/bin:$PATH
alias rake="noglob rake"
alias e="vim ."
alias vim="mvim -v"
# Working with Rails
alias s='script/server'
alias c='script/console'
alias m='rake db:migrate'
alias r='rake'
# Global aliases
alias -g ...='../..'
alias -g ....='../../..'
alias -g .....='../../../..'
alias -g C='| wc -l'
alias -g H='| head'
alias -g L="| less"
alias -g N="| /dev/null"
alias -g S='| sort'
alias -g G='| grep' # now you can do: ls foo G something
# Functions
#
# (f)ind by (n)ame
# usage: fn foo
# to find all files containing 'foo' in the name
function fn() { ls **/*$1* }
alias tmux="TERM=screen-256color-bce tmux"
export PATH="$HOME/.bin:$PATH"
export PATH="$HOME/.rbenv/bin:$PATH"
# system-wide environment settings for zsh(1)
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if which rbenv &> /dev/null; then
# enable shims and auto-completion
eval "$(rbenv init - --no-rehash)"
fi
export KEYTIMEOUT=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment