Updated to dynamicly load dotfiles

This commit is contained in:
Chris Ng 2013-12-01 16:44:16 -08:00
commit 5a3001f2b0

View file

@ -5,7 +5,7 @@ ZSH=$HOME/.oh-my-zsh
# Look in ~/.oh-my-zsh/themes/ # Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each # Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded. # time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell" ZSH_THEME="gnzh"
# Example aliases # Example aliases
# alias zshconfig="mate ~/.zshrc" # alias zshconfig="mate ~/.zshrc"
@ -18,7 +18,7 @@ ZSH_THEME="robbyrussell"
# DISABLE_AUTO_UPDATE="true" # DISABLE_AUTO_UPDATE="true"
# Uncomment to change how often before auto-updates occur? (in days) # Uncomment to change how often before auto-updates occur? (in days)
# export UPDATE_ZSH_DAYS=13 export UPDATE_ZSH_DAYS=15
# Uncomment following line if you want to disable colors in ls # Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true" # DISABLE_LS_COLORS="true"
@ -45,10 +45,11 @@ plugins=(git)
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
# Customize to your needs... # Customize to your needs...
if [ -f ~/.aliases ] ; then for file in ~/.{path,exports,aliases,functions,extra}; do
source ~/.aliases [ -r "$file" ] && [ -f "$file" ] && source "$file"
fi done
unset file
if [ -f ~/.functions ] ; then #export PATH=$PATH:/opt/local/bin:/opt/local/sbin:/opt/local/libexec/gnubin:/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:/Users/cng/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/local/MacGPG2/bin:/Users/cng/.ec2/bin:/Users/cng/.rvm/bin:/usr/local/sbin
source ~/.functions #[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
fi #PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting