File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -77,16 +77,17 @@ bash)
77
77
fi
78
78
;;
79
79
fish)
80
- CONFIG_DIR=" ${HOME} /.config/fish"
81
- RC=" ${CONFIG_DIR} /config .fish"
80
+ CONFIG_DIR=" ${HOME} /.config/fish/conf.d/ "
81
+ RC=" ${CONFIG_DIR} /python- ${PYVER} .fish"
82
82
mkdir -p " $CONFIG_DIR "
83
83
if [ -f " ${RC} " ]; then
84
84
cp -fp " ${RC} " " ${RC} .pysave"
85
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} "
86
+ echo " # Setting PATH for Python ${PYVER} " > " ${RC} "
87
+ if [ -f " ${RC} .pysave" ]; then
88
+ echo " # The original version is saved in ${RC} .pysave" >> " ${RC} "
89
+ fi
90
+ echo " fish_add_path -g \" ${PYTHON_ROOT} /bin\" " >> " ${RC} "
90
91
if [ ` id -ur` = 0 ]; then
91
92
chown " ${USER} " " ${RC} "
92
93
fi
Original file line number Diff line number Diff line change
1
+ Use :file: `~/.config/fish/conf.d ` configs and :program: `fish_add_path ` to set :envvar: `PATH ` when installing for the Fish shell.
You can’t perform that action at this time.
0 commit comments