Files
dotfiles/zsh/zshrc.symlink
2012-05-14 09:39:21 -05:00

38 lines
652 B
Plaintext

export ZSH=$HOME/.dotfiles
if [[ -d ~/gitprojects ]]; then
export PROJECTS=~/gitprojects
else
export PROJECTS=~/projects
fi
# load all zsh config files
for config ($ZSH/**/*.zsh) source $config
if [[ -a ~/.localrc ]]; then
source ~/.localrc
fi
# reload zsh config
alias reload!='source ~/.zshrc'
# initialize autocomplete
autoload -U compinit
compinit
# for config ($ZSH/**/completion.sh) source $config
export EDITOR='vim'
export PATH=/usr/local/bin:$PATH
# load rvm
if [[ -d ~/.rvm ]]; then
source ~/.rvm/scripts/rvm
fi
# check for custom bin directory and add to path
if [[ -d ~/bin ]]; then
export PATH=~/bin:$PATH
fi