From ffa3e894bc81568513bbb0d31391efc9ac794257 Mon Sep 17 00:00:00 2001 From: cyli Date: Sun, 21 Apr 2013 14:17:18 -0700 Subject: [PATCH] Allow setting the color on the virtualenv display --- liquid.theme | 3 +++ liquidprompt | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/liquid.theme b/liquid.theme index 70334b5..71508ef 100644 --- a/liquid.theme +++ b/liquid.theme @@ -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="" diff --git a/liquidprompt b/liquidprompt index 1ce6e72..233ccfc 100755 --- a/liquidprompt +++ b/liquidprompt @@ -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 }