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>
# Uses zgen to manage plugins
2015-01-20 00:00:13 -08:00
2015-11-20 02:08:05 -08:00
DOTFILES=$HOME/.dotfiles
source $DOTFILES/zsh/functions.zsh
source $DOTFILES/zsh/aliases.zsh
2015-06-19 07:04:48 -07:00
# if not running through emacs' shell-command
2015-11-20 02:08:05 -08:00
if [ ! $TERM = dumb ]; then
ZGEN_AUTOLOAD_COMPINIT=true
if [[ "${USER}" == "root" ]]; then
ZGEN_AUTOLOAD_COMPINIT=false
fi
2015-06-18 13:16:54 -07:00
source ~/.zsh/zgen/zgen.zsh
if ! zgen saved; then
echo "Creating zgen save"
2015-06-19 07:04:48 -07:00
2015-06-18 13:16:54 -07:00
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
2015-06-19 07:04:48 -07:00
2015-11-20 02:08:05 -08:00
zgen load $DOTFILES/zsh/config.zsh
zgen load $DOTFILES/zsh/completion.zsh
zgen load $DOTFILES/zsh/keybinds.zsh
zgen load $DOTFILES/zsh/prompt.zsh
2015-06-18 13:16:54 -07:00
zgen save
fi
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
2014-12-13 16:33:21 -08:00
fi
2015-01-20 00:00:13 -08:00
cache rbenv init - --no-rehash
cache pyenv init - --no-rehash
2015-05-07 12:16:04 -07:00
2015-06-19 07:03:05 -07:00
# Done!