VIRTUALENV: avoid usage of 'basename' (external command)
This commit is contained in:
parent
def03a7ffd
commit
7249cffb44
@ -1571,7 +1571,7 @@ _lp_set_prompt()
|
||||
|
||||
# Display the current Python virtual environnement, if available
|
||||
if [[ "$LP_ENABLE_VIRTUALENV,$VIRTUAL_ENV" = 1,?* ]] ; then
|
||||
LP_VENV=" [${LP_COLOR_VIRTUALENV}$(basename $VIRTUAL_ENV)${NO_COL}]"
|
||||
LP_VENV=" [${LP_COLOR_VIRTUALENV}${VIRTUAL_ENV##*/}${NO_COL}]"
|
||||
else
|
||||
LP_VENV=
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user