40 lines
698 B
Plaintext
40 lines
698 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
|
|
|
|
[ -z "$TMUX" ] && export TERM=xterm-256color
|