1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 09:15:24 +02:00

[direnv] Remove the useless space in the PS1 var

This commit is contained in:
Hyacinthe Cartiaux 2020-05-15 18:18:53 +02:00
parent f7f4d8b353
commit 44e068bc09

View file

@ -8,7 +8,7 @@ if [ -n "$(which direnv 2>/dev/null)" ]; then
# See https://github.com/direnv/direnv/wiki/Python#restoring-the-ps
show_virtual_env() {
if [[ -n "$VIRTUAL_ENV" && -n "$DIRENV_DIR" ]]; then
echo "($(basename $VIRTUAL_ENV))"
echo "($(basename $VIRTUAL_ENV)) "
fi
}
if [[ -n ${ZSH_VERSION-} ]]; then
@ -17,5 +17,5 @@ if [ -n "$(which direnv 2>/dev/null)" ]; then
export -f show_virtual_env
fi
PS1='$(show_virtual_env) '$PS1
PS1='$(show_virtual_env)'$PS1
fi