helm/zshrc

43 lines
1.1 KiB
Bash
Raw Normal View History

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
2015-12-20 20:39:11 -08:00
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
ZGEN_AUTOLOAD_COMPINIT=true
[[ "${USER}" == "root" ]] && ZGEN_AUTOLOAD_COMPINIT=false
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 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
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
2015-12-20 20:39:11 -08:00
cache rbenv init - --no-rehash
cache pyenv init - --no-rehash
2015-12-21 00:11:28 -08:00
is-interactive && cache fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install
2015-12-22 23:21:31 -08:00
is-callable tmuxifier && is-interactive && cache tmuxifier init -
2015-01-20 00:00:13 -08:00
2015-12-21 00:11:28 -08:00
iload zsh/fzf
2015-12-20 20:39:11 -08:00
load zsh/config
iload zsh/keybinds
iload zsh/prompt
load zsh/aliases
iload zsh/completion
2015-05-07 12:16:04 -07:00
2015-06-19 07:03:05 -07:00
# Done!