mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add support for the ZSH shell to the "Update Shell Profile" script
on MacOSX. Patch by Sylvain Mora, issue #9701.
This commit is contained in:
parent
a0b551acf8
commit
9af738022e
2 changed files with 8 additions and 1 deletions
|
@ -20,7 +20,7 @@ fi
|
||||||
# Make sure the directory ${PYTHON_ROOT}/bin is on the users PATH.
|
# Make sure the directory ${PYTHON_ROOT}/bin is on the users PATH.
|
||||||
BSH="`basename "${theShell}"`"
|
BSH="`basename "${theShell}"`"
|
||||||
case "${BSH}" in
|
case "${BSH}" in
|
||||||
bash|ksh|sh|*csh)
|
bash|ksh|sh|*csh|zsh)
|
||||||
if [ `id -ur` = 0 ]; then
|
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'`
|
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
|
else
|
||||||
|
@ -76,6 +76,9 @@ bash)
|
||||||
PR="${HOME}/.bash_profile"
|
PR="${HOME}/.bash_profile"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
zsh)
|
||||||
|
PR="${HOME}/.zprofile"
|
||||||
|
;;
|
||||||
*sh)
|
*sh)
|
||||||
PR="${HOME}/.profile"
|
PR="${HOME}/.profile"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -286,6 +286,10 @@ Build
|
||||||
- Issue #4026: Make the fcntl extension build under AIX. Patch by Sébastien
|
- Issue #4026: Make the fcntl extension build under AIX. Patch by Sébastien
|
||||||
Sablé.
|
Sablé.
|
||||||
|
|
||||||
|
- Issue #9701: The MacOSX installer can patch the shell profile to ensure that
|
||||||
|
the "bin" directory inside the framework is on the shell's search path. This
|
||||||
|
feature now also supports the ZSH shell.
|
||||||
|
|
||||||
|
|
||||||
What's New in Python 3.2 Alpha 2?
|
What's New in Python 3.2 Alpha 2?
|
||||||
=================================
|
=================================
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue