37 lines
622 B
Plaintext
37 lines
622 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) source $config
|
|
|
|
if [[ -a ~/.localrc ]]; then
|
|
source ~/.localrc
|
|
fi
|
|
|
|
|
|
# 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
|
|
|
|
[ -z "$TMUX" ] && export TERM=xterm-256color
|