zsh: Create dotfile links under $ZDOTDIR For some reason, zsh expects files under $ZDOTDIR to be dotfiles, unlike many other programs.
1 file changed, 7 insertions(+), 0 deletions(-)
jump to
M hooks/post-up/zsh → 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