VIRTUALENV: avoid usage of 'basename' (external command)

This commit is contained in:
Olivier Mengué 2014-01-06 22:15:46 +01:00
parent def03a7ffd
commit 7249cffb44

View File

@ -1571,7 +1571,7 @@ _lp_set_prompt()
# Display the current Python virtual environnement, if available # Display the current Python virtual environnement, if available
if [[ "$LP_ENABLE_VIRTUALENV,$VIRTUAL_ENV" = 1,?* ]] ; then 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 else
LP_VENV= LP_VENV=
fi fi