We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8695898 commit 6babd68Copy full SHA for 6babd68
Linux/install
@@ -39,6 +39,9 @@ if test -z "$ZSH_VERSION"; then
39
echo
40
exit 2
41
fi
42
+ # Mac OS X 10.7 (Lion) is misconfigured to reset PATH for "zsh -f"
43
+ # Save the original value so it can be restored in zsh.
44
+ export PATH_NwldpJ="$PATH"
45
exec $ZSH -f "$0" "$@"
46
47
@@ -48,6 +51,12 @@ emulate zsh
48
51
umask 022
49
52
setopt extendedglob
50
53
54
+# restore the saved PATH and remove any duplicate entries.
55
+PATH="${PATH_NwldpJ}:${PATH}"
56
+# remove blank and duplicate entries from the PATH
57
+typeset -U path
58
+path=( $path )
59
+
60
# Constants ------------------------------------------------------------------
61
62
DOC=${${DOC##[[:space:]]##}%%[[:space:]]##}
0 commit comments