helm/zshrc
2016-02-25 18:36:53 -05:00

43 lines
1.1 KiB
Bash

### zshrc
# By Henrik Lissner <henrik@lissner.net>
if [ ! -d ~/.zgen ]; then
echo "Zgen isn't installed! Run install.sh"
exit 1
fi
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
ZGEN_AUTOLOAD_COMPINIT=true
[[ "${USER}" == "root" ]] && ZGEN_AUTOLOAD_COMPINIT=false
source ~/.zgen/zgen.zsh
if ! zgen saved; then
echo "Creating zgen save"
[[ -d "$CACHE_DIR" ]] && rm -f "$CACHE_DIR/*"
zgen load StackExchange/blackbox
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
is-ssh || zgen load zsh-users/zsh-syntax-highlighting
zgen save
fi
cache rbenv init - --no-rehash
cache pyenv init - --no-rehash
is-interactive && cache fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install
is-callable tmuxifier && is-interactive && cache tmuxifier init -
iload zsh/fzf
load zsh/config
iload zsh/keybinds
iload zsh/prompt
load zsh/aliases
iload zsh/completion
# Done!