helm/zshrc
Henrik Lissner cc4fd39a14 Cleanup
2014-08-27 09:28:46 -04:00

27 lines
611 B
Bash

#!/bin/zsh
function command_exists {
command -v "$1" &> /dev/null
}
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source ~/.zsh/preztorc
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Source component rcfiles
source ~/.zsh/aliases
source ~/.zsh/config
# If OSX...
if command_exists "brew"; then
export RBENV_ROOT=/usr/local/opt/rbenv
export PYENV_ROOT=/usr/local/opt/pyenv
fi
# Init extra niceties
command_exists "fasd" && eval "$(fasd --init auto)"
command_exists "rbenv" && eval "$(rbenv init - --no-rehash)"
command_exists "pyenv" && eval "$(pyenv init -)"