light - switch to light theme dark - switch to dark theme This way, the theme can quickly be changed so that terminal text can be read on crappier projectors for presentaitons, classes, etc.
69 lines
1.3 KiB
Plaintext
69 lines
1.3 KiB
Plaintext
export DOTFILES=$HOME/.dotfiles
|
|
export ZSH=$DOTFILES/zsh
|
|
|
|
# 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
|
|
|
|
# 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=$DOTFILES/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
|
|
|
|
# alias git to hub
|
|
eval "$(hub alias -s)"
|
|
|
|
# source nvm
|
|
export NVM_DIR=~/.nvm
|
|
source $(brew --prefix nvm)/nvm.sh
|
|
|
|
source `brew --prefix`/etc/profile.d/z.sh
|
|
|
|
|
|
# Base16 Shell
|
|
if [ -z "$THEME" ]; then
|
|
export THEME="base16-atelierlakeside"
|
|
fi
|
|
if [ -z "$BACKGROUND" ]; then
|
|
export BACKGROUND="dark"
|
|
fi
|
|
|
|
BASE16_SHELL="$DOTFILES/.config/base16-shell/$THEME.$BACKGROUND.sh"
|
|
# [[ -s $BASE16_SHELL ]] && source $BASE16_SHELL
|
|
source $BASE16_SHELL
|