Change prompt after activate (#52)

This commit is contained in:
Yamashita, Yuu
2015-11-09 00:34:56 +00:00
parent c1b9238cbe
commit ee18ffac9f
6 changed files with 101 additions and 15 deletions

View File

@@ -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