diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-09-28 13:57:58 +0000 |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-09-28 13:57:58 +0000 |
commit | d41ae7537ad807a84aeb5845287e5632033dbca7 (patch) | |
tree | 7d954308a3cf306013d6446f865c9baaffd6b8ce /Mac/BuildScript/scripts | |
parent | a8ead5dce934c7b7be6b3f9460b3c24e5591258f (diff) | |
download | cpython-d41ae7537ad807a84aeb5845287e5632033dbca7.tar.gz |
Add support for the ZSH shell to the "Update Shell Profile" script
on MacOSX.
Patch by Sylvain Mora, issue #9701.
Diffstat (limited to 'Mac/BuildScript/scripts')
-rwxr-xr-x | Mac/BuildScript/scripts/postflight.patch-profile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Mac/BuildScript/scripts/postflight.patch-profile b/Mac/BuildScript/scripts/postflight.patch-profile index cbf41629af..36d0a3e40e 100755 --- a/Mac/BuildScript/scripts/postflight.patch-profile +++ b/Mac/BuildScript/scripts/postflight.patch-profile @@ -20,7 +20,7 @@ fi # Make sure the directory ${PYTHON_ROOT}/bin is on the users PATH. BSH="`basename "${theShell}"`" case "${BSH}" in -bash|ksh|sh|*csh) +bash|ksh|sh|*csh|zsh) if [ `id -ur` = 0 ]; then 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'` else @@ -76,6 +76,9 @@ bash) PR="${HOME}/.bash_profile" fi ;; +zsh) + PR="${HOME}/.zprofile" + ;; *sh) PR="${HOME}/.profile" ;; |