mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-26 09:33:08 +02:00
zsh init fixed
This commit is contained 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!"
|
||||
|
||||
+4
-4
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user