mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-15 23:13:52 -05:00
Change prompt after activate (#52)
This commit is contained in:
@@ -114,3 +114,17 @@ EOS
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
case "${shell}" in
|
||||
fish )
|
||||
:
|
||||
;;
|
||||
* )
|
||||
if [ -n "${_OLD_VIRTUAL_PS1}" ]; then
|
||||
cat <<EOS
|
||||
export PS1='${_OLD_VIRTUAL_PS1}';
|
||||
unset _OLD_VIRTUAL_PS1;
|
||||
EOS
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user