File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 20
20
# Make sure the directory ${PYTHON_ROOT}/bin is on the users PATH.
21
21
BSH=" ` basename " ${theShell} " ` "
22
22
case " ${BSH} " in
23
- bash|ksh|sh|* csh|zsh)
23
+ bash|ksh|sh|* csh|zsh|fish )
24
24
if [ ` id -ur` = 0 ]; then
25
25
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' `
26
26
else
76
76
PR=" ${HOME} /.bash_profile"
77
77
fi
78
78
;;
79
+ fish)
80
+ CONFIG_DIR=" ${HOME} /.config/fish"
81
+ RC=" ${CONFIG_DIR} /config.fish"
82
+ mkdir -p " $CONFIG_DIR "
83
+ if [ -f " ${RC} " ]; then
84
+ cp -fp " ${RC} " " ${RC} .pysave"
85
+ fi
86
+ echo " " >> " ${RC} "
87
+ echo " # Setting PATH for Python ${PYVER} " >> " ${RC} "
88
+ echo " # The original version is saved in ${RC} .pysave" >> " ${RC} "
89
+ echo " set -x PATH \" ${PYTHON_ROOT} /bin\" \"\$ PATH\" " >> " ${RC} "
90
+ if [ ` id -ur` = 0 ]; then
91
+ chown " ${USER} " " ${RC} "
92
+ fi
93
+ exit 0
94
+ ;;
79
95
zsh)
80
96
PR=" ${HOME} /.zprofile"
81
97
;;
Original file line number Diff line number Diff line change
1
+ Add fish shell support to macOS installer.
You can’t perform that action at this time.
0 commit comments