helm/zshrc

52 lines
1.5 KiB
Bash
Raw Normal View History

2015-06-18 13:16:54 -07:00
function is-callable {
(( $+commands[$1] )) || (( $+functions[$1] )) || (( $+aliases[$1] ))
}
2015-01-20 00:00:13 -08:00
2013-03-08 21:18:10 -08:00
# Source component rcfiles
2014-09-20 13:38:40 -07:00
if [[ -z "$EMACS" ]]; then
2015-06-18 13:16:54 -07:00
source ~/.zsh/zgen/zgen.zsh
if ! zgen saved; then
echo "Creating zgen save"
zgen load zsh-users/zsh-syntax-highlighting
zgen load zsh-users/zsh-history-substring-search
zgen load zsh-users/zsh-completions src
zgen load clvv/fasd
zgen load hchbaw/opp.zsh
zgen load Tarrasch/zsh-bd
zgen load houjunchen/zsh-vim-mode
zgen save
fi
source ~/.zsh/aliases.zsh
source ~/.zsh/config.zsh
source ~/.zsh/keybinds.zsh
source ~/.zsh/prompt.zsh
fasd_cache="$HOME/.fasd-cache"
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install >| "$fasd_cache"
fi
source "$fasd_cache"
unset fasd_cache
2014-09-20 13:38:40 -07:00
fi
2015-06-18 13:16:54 -07:00
## PATHS ###############################################
2015-01-21 16:14:19 -08:00
if [ -d ~/.rbenv ]; then
2015-01-20 00:00:13 -08:00
export PATH=~/.rbenv/bin:$PATH
2014-12-13 16:33:21 -08:00
eval "$(rbenv init - --no-rehash)"
fi
2015-01-20 00:00:13 -08:00
2015-01-21 16:14:19 -08:00
if [ -d ~/.pyenv ]; then
2015-01-20 00:00:13 -08:00
export PATH=~/.pyenv/bin:~/.pyenv/shims:$PATH
2014-09-20 13:38:40 -07:00
eval "$(pyenv init - --no-rehash)"
fi
2015-05-06 20:06:38 -07:00
export ANDROID_HOME=/usr/local/opt/android-sdk
2015-05-20 19:53:27 -07:00
export ANDROID_SDK=/usr/local/Cellar/android-sdk/24.2
2015-05-06 20:06:38 -07:00
export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH
2015-05-07 12:16:04 -07:00
2015-06-11 14:21:12 -07:00
export CPPFLAGS="-I/usr/local/include"
export LDFLAGS="-L/usr/local/lib -L/usr/local/opt/sqlite/lib"