diff options
author | Alan Pearce | 2016-11-04 19:18:24 +0100 |
---|---|---|
committer | Alan Pearce | 2016-11-04 19:18:24 +0100 |
commit | c96e914059715e05d6bcef50f53ee048f088bd92 (patch) | |
tree | c624f743c96ca50a66224a7b9180b1bc66ab31ed /hooks/post-up/zsh | |
parent | c9a5e8b8a412daa6160e0d6d64c40bd978a7259b (diff) | |
parent | d18942af3be0ee634695630e2e0b17a3f12fd815 (diff) | |
download | dotfiles-c96e914059715e05d6bcef50f53ee048f088bd92.tar.lz dotfiles-c96e914059715e05d6bcef50f53ee048f088bd92.tar.zst dotfiles-c96e914059715e05d6bcef50f53ee048f088bd92.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'hooks/post-up/zsh')
-rwxr-xr-x | hooks/post-up/zsh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/hooks/post-up/zsh b/hooks/post-up/zsh index b7a7d4a..3eef6e5 100755 --- a/hooks/post-up/zsh +++ b/hooks/post-up/zsh @@ -4,26 +4,26 @@ ZDOTDIR="${XDG_CONFIG_HOME:=~/.config}/zsh" pushd $ZDOTDIR for f in z*(-.) do - if [[ -e .$f ]] - then - if [[ ! -h .$f ]] - then - echo ".$f already exists as a regular file, ignoring" - fi - else - ln -s $f .$f - fi + if [[ -e .$f ]] + then + if [[ ! -h .$f ]] + then + echo ".$f already exists as a regular file, ignoring" + fi + else + ln -s $f .$f + fi done popd if [[ ! -d ~/.cache/zsh ]] then - mkdir -p ~/.cache/zsh + mkdir -p ~/.cache/zsh fi if [[ -z $commands[zplug] && ! -d ~/projects/zplug/ ]] then - git clone git://github.com/zplug/zplug ~/projects/zplug/ + git clone git://github.com/zplug/zplug ~/projects/zplug/ fi zsh -ic "zplug install" |