Ver código fonte

fix fish prompt

pull/475/head
romir kulshrestha 7 meses atrás
pai
commit
9d0e422d3f
Falha ao extrair assinatura
2 arquivos alterados com 15 adições e 2 exclusões
  1. +8
    -1
      bin/pyenv-sh-activate
  2. +7
    -1
      bin/pyenv-sh-deactivate

+ 8
- 1
bin/pyenv-sh-activate Ver arquivo

@ -245,7 +245,14 @@ if [ -z "${PYENV_VIRTUALENV_DISABLE_PROMPT}" ]; then
case "${shell}" in
fish )
if [ -z "${QUIET}" ]; then
echo "pyenv-virtualenv: prompt changing not working for fish." 1>&2
cat <<EOS
functions -e _pyenv_old_prompt
functions -c fish_prompt _pyenv_old_prompt
function fish_prompt
echo -n "(${venv}) "
_pyenv_old_prompt
end
EOS
fi
;;
* )

+ 7
- 1
bin/pyenv-sh-deactivate Ver arquivo

@ -187,7 +187,13 @@ esac
case "${shell}" in
fish )
:
cat <<EOS
if functions -q _pyenv_old_prompt
functions -e fish_prompt
functions -c _pyenv_old_prompt fish_prompt
functions -e _pyenv_old_prompt
end
EOS
;;
* )
cat <<EOS

Carregando…
Cancelar
Salvar