From 2f341cd1fad7d855a2b6d4faa9025e0aaf08314c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 12 Apr 2014 18:21:50 +0100 Subject: zsh: Create dotfile links under $ZDOTDIR For some reason, zsh expects files under $ZDOTDIR to be dotfiles, unlike many other programs. --- hooks/post-up/zsh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hooks/post-up') diff --git a/hooks/post-up/zsh b/hooks/post-up/zsh index b31a8cb4..7ed08de4 100755 --- a/hooks/post-up/zsh +++ b/hooks/post-up/zsh @@ -1,6 +1,13 @@ #!/usr/bin/env zsh ZDOTDIR="${XDG_CONFIG_HOME:~/.config}/zsh" +pushd $ZDOTDIR +for f in z*(-.) +do + [[ -e .$f ]] || ln $f .$f +done +popd + if [[ ! -d ~/.cache/zsh ]] then mkdir -p ~/.cache/zsh -- cgit 1.4.1