Cleaner PS1: Do not display '.venv', we know it's .venv, it's always .venv.
This commit is contained in:
parent
c174ac7e17
commit
6c8b68040d
8
.bashrc
8
.bashrc
|
@ -86,7 +86,13 @@ python_ps1()
|
||||||
then
|
then
|
||||||
pypath="$relative"
|
pypath="$relative"
|
||||||
fi
|
fi
|
||||||
printf "$1" "${pypath%/bin/python}"
|
local venvpath="${pypath%/bin/python}"
|
||||||
|
if [[ "$venvpath" == ".venv" ]]
|
||||||
|
then
|
||||||
|
printf "$1"
|
||||||
|
else
|
||||||
|
printf "$1" "$venvpath "
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ "$TERM" != 'dumb' ]]
|
if [[ "$TERM" != 'dumb' ]]
|
||||||
|
|
Loading…
Reference in New Issue