aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/prompt_adam3_setup
diff options
context:
space:
mode:
authorDennis Eriksen <dennis@eriksen.im>2017-12-29 10:39:28 +0100
committerDennis Eriksen <dennis@eriksen.im>2017-12-29 10:39:28 +0100
commit33d2fe5c78641b18a1e3a3f392163997d739102c (patch)
tree64c7fdaf0bc9caa142d8371fb5cd314c62715152 /prompt_adam3_setup
parentbugfix (diff)
downloadadam3-33d2fe5c78641b18a1e3a3f392163997d739102c.tar.gz
add support for virtualenv
Diffstat (limited to '')
-rw-r--r--prompt_adam3_setup1
1 files changed, 1 insertions, 0 deletions
diff --git a/prompt_adam3_setup b/prompt_adam3_setup
index ddfd4c1..adc444d 100644
--- a/prompt_adam3_setup
+++ b/prompt_adam3_setup
@@ -89,6 +89,7 @@ prompt_adam3_precmd () {
PS1+="%(?..[%{$fg[red]%}%?%{$reset_color%}] )"
PS1+="${promptchar} %b%f%k"
+ [ ${VIRTUAL_ENV} ] && PS1="%F{208}($(basename ${VIRTUAL_ENV}))%f ${PS1}"
PS2="${PS1}%_> %b%f%k"
PS3="${PS1}?# %b%f%k"
}