diff options
author | Alan Pearce | 2016-06-26 17:29:22 +0200 |
---|---|---|
committer | Alan Pearce | 2016-06-26 17:29:22 +0200 |
commit | 61a885bece9549f994731b9017c00491b1cb6499 (patch) | |
tree | f84f2c24a6c078aaafc3338bcdca91cdf8f525ff /hooks/post-up/zsh | |
parent | 32c46b315483ec2f58f14acd5cc3d9145c65c65c (diff) | |
parent | 097663cb10d0e8c244063af28295cff6d686f1bb (diff) | |
download | dotfiles-61a885bece9549f994731b9017c00491b1cb6499.tar.lz dotfiles-61a885bece9549f994731b9017c00491b1cb6499.tar.zst dotfiles-61a885bece9549f994731b9017c00491b1cb6499.zip |
Re-make zsh configuration
Start using zplug with the bare minimum of extra configuration
Diffstat (limited to 'hooks/post-up/zsh')
-rwxr-xr-x | hooks/post-up/zsh | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/hooks/post-up/zsh b/hooks/post-up/zsh index 15b6a2f..b7a7d4a 100755 --- a/hooks/post-up/zsh +++ b/hooks/post-up/zsh @@ -21,35 +21,9 @@ then mkdir -p ~/.cache/zsh fi -local -a zfiles -zfiles=($ZDOTDIR/zshrc) - -autoload -U zrecompile - -if [[ -f $ZDOTDIR/${HOST%%.*}.zsh ]]; then - zfiles+=$ZDOTDIR/${HOST%%.*}.zsh -fi -if [[ $OSTYPE == freebsd* ]]; then - zfiles+=$ZDOTDIR/freebsd.zsh -fi - -autoload -Uz compinit -compinit -u -d ~/.cache/zsh/compdump -zrecompile -p -R $ZDOTDIR/.zshrc.zwc $zfiles -- \ - -M ~/.cache/zsh/compdump - -if [[ -s $commands[fasd] ]]; then - if [[ ! -d $ZDOTDIR/functions/fasd ]]; then - mkdir $ZDOTDIR/functions/fasd - fi - if [[ ! -h $ZDOTDIR/functions/fasd/fasd ]]; then - ln -s =fasd $ZDOTDIR/functions/fasd/fasd - fi +if [[ -z $commands[zplug] && ! -d ~/projects/zplug/ ]] +then + git clone git://github.com/zplug/zplug ~/projects/zplug/ fi -for fp in $ZDOTDIR/functions/*(/); do - zrecompile -p $fp $fp/* -done - -[[ -f ~/.zsh/fasd-data ]] && mv ~/.zsh/fasd-data ~/.cache/zsh/fasd-data -[[ -f ~/.zsh/history ]] && mv ~/.zsh/history ~/.cache/zsh/history +zsh -ic "zplug install" |