FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add support for the ZSH shell to the "Update Shell Profile" script · python/cpython@9af7380 · GitHub

Repository navigation

Commit 9af7380

Browse files
Add support for the ZSH shell to the "Update Shell Profile" script
on MacOSX. Patch by Sylvain Mora, issue #9701.
1 parent a0b551a commit 9af7380

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
@@ -286,6 +286,10 @@ Build
286286
- Issue #4026: Make the fcntl extension build under AIX. Patch by Sébastien
287287
Sablé.
288288

289+
- Issue #9701: The MacOSX installer can patch the shell profile to ensure that
290+
the "bin" directory inside the framework is on the shell's search path. This
291+
feature now also supports the ZSH shell.
292+
289293

290294
What's New in Python 3.2 Alpha 2?
291295
=================================

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL