X-Git-Url: https://git.ganneff.de//index.cgi?p=zsh.git;a=blobdiff_plain;f=.zsh%2Finstall.zsh;h=75adcc77d01c41ba6c3cecfd9951bd52a78ae2df;hp=bfbf435531ebe8a6b6c378115e36f1fd927dc7d8;hb=ca4d96f4d296b7f047e74312d67dff7524ff12c4;hpb=26bb2a82d6351239ee5d0766cbd7b4f8250db8b6 diff --git a/.zsh/install.zsh b/.zsh/install.zsh index bfbf435..75adcc7 100644 --- a/.zsh/install.zsh +++ b/.zsh/install.zsh @@ -64,6 +64,7 @@ if [[ $1 == "MAGIC" ]]; then rm -f ~/.zshrc rm -f ~/.zshenv ln -s .zsh/zshenv.home ~/.zshenv + autoload -Uz relative linktarget=$(relative "${HOME}/zshenv.local" "${HOME}/zshenv.local.sample") /bin/ln -s "${linktarget}" "${HOME}/zshenv.local.sample" print $OK