profile.zsh: rename __pm_root__ to __this_file__

This commit is contained in:
2022-07-27 11:03:57 +02:00
parent cddc918652
commit 1aebcfd069
+4 -3
View File
@@ -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 "$_"