Add fish prompt changing (#475)

This commit is contained in:
Romir K
2024-02-12 09:58:27 +00:00
committed by GitHub
parent 2b2b87a25a
commit 0f83c33a3b
6 changed files with 125 additions and 7 deletions

View File

@@ -187,7 +187,15 @@ esac
case "${shell}" in
fish )
:
cat <<EOS
# check if old prompt function exists
if functions -q _pyenv_old_prompt
# remove old prompt function if exists.
functions -e fish_prompt
functions -c _pyenv_old_prompt fish_prompt
functions -e _pyenv_old_prompt
end
EOS
;;
* )
cat <<EOS