Update zgen + zgen init config

This commit is contained in:
Henrik Lissner 2015-11-20 05:08:05 -05:00
parent f49f3134f4
commit 80f87fba54
2 changed files with 16 additions and 9 deletions

@ -1 +1 @@
Subproject commit ba6592067b06d2deb9e251070e724d492f964c01
Subproject commit 3a0f26ed2f2d0b7b2f34fa5bac3c3a58d58cfc59

23
zshrc
View file

@ -2,11 +2,18 @@
# By Henrik Lissner <henrik@lissner.net>
# Uses zgen to manage plugins
source ~/.zsh/functions.zsh
source ~/.zsh/aliases.zsh
DOTFILES=$HOME/.dotfiles
source $DOTFILES/zsh/functions.zsh
source $DOTFILES/zsh/aliases.zsh
# if not running through emacs' shell-command
if [ -z "$EMACS" ]; then
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"
@ -18,14 +25,14 @@ if [ -z "$EMACS" ]; then
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
source ~/.zsh/config.zsh
source ~/.zsh/completion.zsh
source ~/.zsh/keybinds.zsh
source ~/.zsh/prompt.zsh
cache fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install
fi