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:
parent
f7f4d8b353
commit
44e068bc09
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ if [ -n "$(which direnv 2>/dev/null)" ]; then
|
||||||
# See https://github.com/direnv/direnv/wiki/Python#restoring-the-ps
|
# See https://github.com/direnv/direnv/wiki/Python#restoring-the-ps
|
||||||
show_virtual_env() {
|
show_virtual_env() {
|
||||||
if [[ -n "$VIRTUAL_ENV" && -n "$DIRENV_DIR" ]]; then
|
if [[ -n "$VIRTUAL_ENV" && -n "$DIRENV_DIR" ]]; then
|
||||||
echo "($(basename $VIRTUAL_ENV))"
|
echo "($(basename $VIRTUAL_ENV)) "
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
if [[ -n ${ZSH_VERSION-} ]]; then
|
if [[ -n ${ZSH_VERSION-} ]]; then
|
||||||
|
@ -17,5 +17,5 @@ if [ -n "$(which direnv 2>/dev/null)" ]; then
|
||||||
export -f show_virtual_env
|
export -f show_virtual_env
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PS1='$(show_virtual_env) '$PS1
|
PS1='$(show_virtual_env)'$PS1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue