Files
dotfiles/zsh/zshrc.symlink
Nick Nisi cf9ef8c569 fix slow terminal init
Moved all completion.sh and .zsh files into the zsh directory, so I
don't end up scanning all of my dotfiles plus nvm each time a new
terminal is initialized.
2014-03-14 21:42:34 -05:00

50 lines
900 B
Plaintext

export ZSH=$HOME/.dotfiles
# define the code directory
if [[ -d ~/code ]]; then
export CODE_DIR=~/code
fi
# load all zsh config files
for config ($ZSH/zsh/**/*.zsh) source $config
if [[ -a ~/.localrc ]]; then
source ~/.localrc
fi
# initialize autocomplete
autoload -U compinit
compinit
for config ($ZSH/zsh/**/*completion.sh) source $config
export EDITOR='vim'
export PATH=/usr/local/bin:$PATH
# add /usr/local/sbin
if [[ -d /usr/local/sbin ]]; then
export PATH=/usr/local/sbin:$PATH
fi
# adding path directory for custom scripts
export PATH=$ZSH/bin:$PATH
# check for custom bin directory and add to path
if [[ -d ~/bin ]]; then
export PATH=~/bin:$PATH
fi
[ -z "$TMUX" ] && export TERM=xterm-256color
if [[ -d ~/.rvm ]]; then
PATH=$HOME/.rvm/bin:$PATH # Add RVM to PATH for scripting
source ~/.rvm/scripts/rvm
fi
if [[ -d ~/.nvm ]]; then
source ~/.nvm/nvm.sh
fi