helm/zshrc

31 lines
750 B
Bash
Raw Normal View History

#!/bin/zsh
# Prevent any of this initialization in non-interactive (or emacs)
# shell commands. It slows them down.
2014-08-25 20:20:39 -07:00
# [[ $TERM == "dumb" ]] && return
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-08-27 05:44:30 -07:00
# If is OSX
if command_exists "brew"; then
export RBENV_ROOT=/usr/local/opt/rbenv
export PYENV_ROOT=/usr/local/opt/pyenv
fi
# Init rbenv & pyenv
2014-08-21 00:27:19 -07:00
command_exists "fasd" && eval "$(fasd --init auto)"
command_exists "rbenv" && eval "$(rbenv init - --no-rehash)"
2014-08-27 05:44:30 -07:00
command_exists "pyenv" && eval "$(pyenv init -)"