helm/zshrc
2015-11-25 17:28:31 -05:00

43 lines
1.1 KiB
Bash

### zshrc
# By Henrik Lissner <henrik@lissner.net>
# Uses zgen to manage plugins
DOTFILES=$HOME/.dotfiles
source $DOTFILES/zsh/functions.zsh
source $DOTFILES/zsh/aliases.zsh
# if not running through emacs' shell-command
if [ ! $TERM = dumb ]; then
ZGEN_AUTOLOAD_COMPINIT=true
if [[ "${USER}" == "root" ]]; then
ZGEN_AUTOLOAD_COMPINIT=false
fi
source ~/.zsh/zgen/zgen.zsh
if ! zgen saved; then
echo "Creating zgen save"
zgen load zsh-users/zsh-syntax-highlighting
zgen load zsh-users/zsh-history-substring-search
zgen load zsh-users/zsh-completions src
zgen load hchbaw/opp.zsh
zgen load Tarrasch/zsh-bd
zgen load houjunchen/zsh-vim-mode
zgen load $DOTFILES/zsh/config.zsh
zgen load $DOTFILES/zsh/completion.zsh
zgen load $DOTFILES/zsh/keybinds.zsh
zgen load $DOTFILES/zsh/prompt.zsh
zgen save
fi
cache fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install
fi
cache rbenv init - --no-rehash
cache pyenv init - --no-rehash
# Done!