helm/zshrc

45 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
2015-12-20 20:39:11 -08:00
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
ZSH_PLUGINS_ALIAS_TIPS_EXPAND=1
ZGEN_AUTOLOAD_COMPINIT=true
[[ "${USER}" == "root" ]] && ZGEN_AUTOLOAD_COMPINIT=false
load zsh/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 djui/alias-tips
zgen load joepvd/zsh-hints
zgen load unixorn/git-extra-commands
zgen load hlissner/zsh-autopair "autopair.zsh"
zgen load zsh-users/zsh-history-substring-search
is-ssh || zgen load zsh-users/zsh-syntax-highlighting
zgen load zsh-users/zsh-completions src
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
if is-interactive; then
2015-06-19 07:04:48 -07:00
cache fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install
2015-12-17 02:32:03 -08:00
export FZF_DEFAULT_COMMAND='ag -g ""'
export FZF_DEFAULT_OPTS='--reverse --inline-info'
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
2014-12-13 16:33:21 -08:00
fi
2015-01-20 00:00:13 -08:00
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!