You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.1 KiB

ZSH=$HOME/.oh-my-zsh
ZSH_THEME=robbyrussell
CASE_SENSITIVE="true"
# Comment this out to disable bi-weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment to change how often before auto-updates occur? (in days)
export UPDATE_ZSH_DAYS=3
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want to disable command autocorrection
DISABLE_CORRECTION="true"
# Uncomment following line if you want red dots to be displayed while waiting
# for completion
COMPLETION_WAITING_DOTS="true"
# Uncomment following line if you want to disable marking untracked files under
# VCS as dirty. This makes repository status check for large repositories much,
# much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
plugins=(
git
ruby
vi-mode
autoenv
bundler
golang
rbenv
)
fpath=(/usr/local/share/zsh/site-functions $fpath)
source $ZSH/oh-my-zsh.sh
# The completion for aws is not compatible with $fpath :scream_cat:
if [[ -f /usr/local/share/zsh/site-functions/_aws ]] ; then
source /usr/local/share/zsh/site-functions/_aws
fi
unsetopt correct_all
bindkey '^R' history-incremental-search-backward
path=(
$HOME/bin
$HOME/.goenv/bin
$HOME/gopath/bin
$HOME/.rbenv/bin
$HOME/.rbenv/shims
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/games
/usr/local/games
)
eval "$(goenv init -)"
export GOPATH="$HOME/gopath"
CDPATH="$HOME/workspace:$HOME/src:$HOME/Development/src:$HOME/repos"
for prefix in github.com github.com/travis-ci github.com/meatballhat code.google.com/p ; do
CDPATH="$HOME/gopath/src/$prefix:$CDPATH"
done
export GPG_TTY=$(tty)
source ~/.bash_aliases
function dump-ssh-agent() {
env | awk '/SSH/ {
sub(/=/, "=\"", $1)
sub(/$/, "\"", $1)
print "export " $1
}' | tee ~/.ssh/agent.out
}
function load-ssh-agent() {
source ~/.ssh/agent.out
}
[[ -e ~/.zshenv ]] && source ~/.zshenv
# added by travis gem
[[ -f ~/.travis/travis.sh ]] && source ~/.travis/travis.sh