2015-06-19 07:04:48 -07:00
|
|
|
### zshrc
|
|
|
|
# By Henrik Lissner <henrik@lissner.net>
|
2015-01-20 00:00:13 -08:00
|
|
|
|
2016-02-25 15:36:31 -08:00
|
|
|
if [ ! -d ~/.zgen ]; then
|
|
|
|
echo "Zgen isn't installed! Run install.sh"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2016-02-26 11:49:05 -08:00
|
|
|
TMUXIFIER="$HOME/.tmuxifier"
|
2015-12-20 20:39:11 -08:00
|
|
|
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
|
|
|
|
|
2016-02-25 15:36:31 -08:00
|
|
|
source ~/.zgen/zgen.zsh
|
2015-12-20 20:39:11 -08:00
|
|
|
if ! zgen saved; then
|
|
|
|
echo "Creating zgen save"
|
|
|
|
[[ -d "$CACHE_DIR" ]] && rm -f "$CACHE_DIR/*"
|
|
|
|
|
|
|
|
zgen load thewtex/tmux-mem-cpu-load
|
|
|
|
zgen load joepvd/zsh-hints
|
|
|
|
|
|
|
|
zgen load hlissner/zsh-autopair "autopair.zsh"
|
|
|
|
zgen load zsh-users/zsh-history-substring-search
|
|
|
|
zgen load zsh-users/zsh-completions src
|
2015-12-21 00:11:28 -08:00
|
|
|
is-ssh || zgen load zsh-users/zsh-syntax-highlighting
|
2015-12-20 20:39:11 -08:00
|
|
|
|
|
|
|
zgen save
|
|
|
|
fi
|
2015-06-19 07:04:48 -07:00
|
|
|
|
2016-02-26 11:49:05 -08:00
|
|
|
source ~/.zsh/config
|
|
|
|
if is-interactive; then
|
|
|
|
source ~/.zsh/keybinds
|
|
|
|
source ~/.zsh/prompt
|
|
|
|
source ~/.zsh/completion
|
|
|
|
fi
|
|
|
|
|
2015-12-20 20:39:11 -08:00
|
|
|
cache rbenv init - --no-rehash
|
|
|
|
cache pyenv init - --no-rehash
|
2016-02-25 15:52:04 -08:00
|
|
|
if is-interactive; then
|
2016-02-25 21:11:30 -08:00
|
|
|
cache fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install
|
|
|
|
cache tmuxifier init -
|
2016-02-25 15:37:43 -08:00
|
|
|
fi
|
2015-01-20 00:00:13 -08:00
|
|
|
|
2016-02-25 21:11:30 -08:00
|
|
|
source ~/.zsh/aliases
|
2015-05-07 12:16:04 -07:00
|
|
|
|
2015-06-19 07:03:05 -07:00
|
|
|
# Done!
|