zsh init fixed

This commit is contained in:
2022-05-17 19:01:51 +02:00
parent 32b2687936
commit 25152acb5e
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -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!"
+4 -4
View File
@@ -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...