Update zgen + zgen init config
This commit is contained in:
parent
f49f3134f4
commit
80f87fba54
2
zsh/zgen
2
zsh/zgen
|
@ -1 +1 @@
|
|||
Subproject commit ba6592067b06d2deb9e251070e724d492f964c01
|
||||
Subproject commit 3a0f26ed2f2d0b7b2f34fa5bac3c3a58d58cfc59
|
23
zshrc
23
zshrc
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue