Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 478b2a8

Browse files
Merged revisions 85059 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ........ r85059 | ronald.oussoren | 2010-09-28 15:57:58 +0200 (Tue, 28 Sep 2010) | 5 lines Add support for the ZSH shell to the "Update Shell Profile" script on MacOSX. Patch by Sylvain Mora, issue #9701. ........
1 parent 805ddaa commit 478b2a8

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Mac/BuildScript/scripts/postflight.patch-profile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fi
2020
# Make sure the directory ${PYTHON_ROOT}/bin is on the users PATH.
2121
BSH="`basename "${theShell}"`"
2222
case "${BSH}" in
23-
bash|ksh|sh|*csh)
23+
bash|ksh|sh|*csh|zsh)
2424
if [ `id -ur` = 0 ]; then
2525
P=`su - ${USER} -c 'echo A-X-4-X@@$PATH@@X-4-X-A' | grep 'A-X-4-X@@.*@@X-4-X-A' | sed -e 's/^A-X-4-X@@//g' -e 's/@@X-4-X-A$//g'`
2626
else
@@ -76,6 +76,9 @@ bash)
7676
PR="${HOME}/.bash_profile"
7777
fi
7878
;;
79+
zsh)
80+
PR="${HOME}/.zprofile"
81+
;;
7982
*sh)
8083
PR="${HOME}/.profile"
8184
;;

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,10 @@ Build
605605
variable anymore. It also forwards the LDFLAGS settings to the linker
606606
when building a shared library.
607607

608+
- Issue #9701: The MacOSX installer can patch the shell profile to ensure that
609+
the "bin" directory inside the framework is on the shell's search path. This
610+
feature now also supports the ZSH shell.
611+
608612
Tests
609613
-----
610614

0 commit comments

Comments
 (0)