summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2010-09-28 13:57:58 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2010-09-28 13:57:58 (GMT)
commit9af738022ee36bd577f1decd181e8a8911691a7b (patch)
tree49959c7d7a342021356b60530df2d659f5533df9 /Mac
parenta0b551acf8b6325e4585a2af63ba9115954616f7 (diff)
downloadcpython-9af738022ee36bd577f1decd181e8a8911691a7b.zip
cpython-9af738022ee36bd577f1decd181e8a8911691a7b.tar.gz
cpython-9af738022ee36bd577f1decd181e8a8911691a7b.tar.bz2
Add support for the ZSH shell to the "Update Shell Profile" script
on MacOSX. Patch by Sylvain Mora, issue #9701.
Diffstat (limited to 'Mac')
-rwxr-xr-xMac/BuildScript/scripts/postflight.patch-profile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mac/BuildScript/scripts/postflight.patch-profile b/Mac/BuildScript/scripts/postflight.patch-profile
index cbf4162..36d0a3e 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"
;;