From 1aebcfd0698509a37dd4f02f60a742ce7a63e0ee Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 27 Jul 2022 11:03:57 +0200 Subject: [PATCH] profile.zsh: rename __pm_root__ to __this_file__ --- Pmodules/profile.zsh.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Pmodules/profile.zsh.in b/Pmodules/profile.zsh.in index b0a7f4a..6accc21 100644 --- a/Pmodules/profile.zsh.in +++ b/Pmodules/profile.zsh.in @@ -5,10 +5,11 @@ : ${PMODULES_VERSION:=@PMODULES_VERSION@} ##### no changes below this line ###### +export PMODULES_VERSION -declare __pm_root__=${(%):-%N} -declare -x PMODULES_HOME="${__pm_root__:h:h}/Tools/Pmodules/${PMODULES_VERSION}" -unset __pm_root__ +declare __this_file__=${(%):-%N} +declare -x PMODULES_HOME="${__this_file____:h:h}/Tools/Pmodules/${PMODULES_VERSION}" +unset __this_file__ test -r "${PMODULES_HOME}/init/zsh" && source "$_"