From 25152acb5ea47c3cbc8e36dc21050a77d643c159 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 17 May 2022 19:01:51 +0200 Subject: [PATCH] zsh init fixed --- Pmodules/profile.zsh.in | 6 +++--- Pmodules/zsh | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Pmodules/profile.zsh.in b/Pmodules/profile.zsh.in index fceda7d..b0a7f4a 100644 --- a/Pmodules/profile.zsh.in +++ b/Pmodules/profile.zsh.in @@ -6,11 +6,11 @@ ##### no changes below this line ###### -declare __pm_root__=$(cd $(dirname "${BASH_SOURCE}")/.. && pwd) -declare -x PMODULES_HOME="${__pm_root__}/Tools/Pmodules/${PMODULES_VERSION}" +declare __pm_root__=${(%):-%N} +declare -x PMODULES_HOME="${__pm_root__:h:h}/Tools/Pmodules/${PMODULES_VERSION}" unset __pm_root__ -test -r "${PMODULES_HOME}/init/bash" && source "$_" +test -r "${PMODULES_HOME}/init/zsh" && source "$_" if [[ $? != 0 ]]; then echo "Oops: cannot initialize Pmodules!" diff --git a/Pmodules/zsh b/Pmodules/zsh index b479748..0b5d282 100644 --- a/Pmodules/zsh +++ b/Pmodules/zsh @@ -9,11 +9,11 @@ if [[ ! -d ${PMODULES_HOME} ]]; then fi ############################################################################# -# initialize bash completion +# initialize zsh completion # -if [[ -r "${PMODULES_HOME}/init/bash_completion" ]]; then - source "${PMODULES_HOME}/init/bash_completion" -fi +#if [[ -r "${PMODULES_HOME}/init/bash_completion" ]]; then +# source "${PMODULES_HOME}/init/bash_completion" +#fi ############################################################################# # legacy...