Allow setting the color on the virtualenv display
This commit is contained in:
parent
f483697fda
commit
ffa3e894bc
@ -96,6 +96,9 @@ LP_COLOR_DISCHARGING_UNDER="$RED" # discharging and under threshold
|
||||
# Time
|
||||
LP_COLOR_TIME="$BLUE"
|
||||
|
||||
# Virtualenv
|
||||
LP_COLOR_VIRTUALENV="$CYAN"
|
||||
|
||||
# Color maps (battery and load levels)
|
||||
# Range from 0 (nothing special) to 9 (alert)
|
||||
LP_COLORMAP_0=""
|
||||
|
@ -597,7 +597,9 @@ _lp_permissions_color()
|
||||
_lp_virtualenv()
|
||||
{
|
||||
[[ "$LP_ENABLE_VIRTUALENV" != 1 ]] && return
|
||||
[[ -n "$VIRTUAL_ENV" ]] && echo "[$(basename $VIRTUAL_ENV)]"
|
||||
if [[ -n "$VIRTUAL_ENV" ]]; then
|
||||
echo "[${LP_COLOR_VIRTUALENV}$(basename $VIRTUAL_ENV)${NO_COL}]"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user