2014-07-17 01:26:38 -07:00
|
|
|
#!/bin/zsh
|
|
|
|
|
2014-08-21 00:28:45 -07:00
|
|
|
function command_exists {
|
|
|
|
command -v "$1" &> /dev/null
|
|
|
|
}
|
|
|
|
|
2014-07-29 02:24:29 -07:00
|
|
|
# Source Prezto.
|
|
|
|
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
|
|
|
|
source ~/.zsh/preztorc
|
|
|
|
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
|
2013-08-04 02:04:22 -07:00
|
|
|
fi
|
2013-03-21 19:23:20 -07:00
|
|
|
|
2013-03-08 21:18:10 -08:00
|
|
|
# Source component rcfiles
|
2013-03-16 10:31:08 -07:00
|
|
|
source ~/.zsh/aliases
|
|
|
|
source ~/.zsh/config
|
2014-03-29 14:56:33 -07:00
|
|
|
|
2014-08-27 06:07:17 -07:00
|
|
|
# Init extra niceties
|
2014-08-21 00:27:19 -07:00
|
|
|
command_exists "fasd" && eval "$(fasd --init auto)"
|
2014-08-24 03:31:21 -07:00
|
|
|
command_exists "rbenv" && eval "$(rbenv init - --no-rehash)"
|
2014-08-30 23:51:12 -07:00
|
|
|
if command_exists "pyenv"; then
|
|
|
|
eval "$(pyenv init -)"
|
|
|
|
eval "$(pyenv virtualenv-init -)"
|
|
|
|
fi
|
|
|
|
if command_exists "go"; then
|
|
|
|
export GOPATH="$HOME/Dropbox/Projects/dev/go"
|
|
|
|
export PATH="$GOPATH/bin:$PATH"
|
|
|
|
fi
|