mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-26 10:13:37 +08:00
Merge pull request #2168 from riyad/modernize-virtualenv
Modernize the virtualenv plugin
This commit is contained in:
commit
2984d2dc4b
|
@ -1,7 +1,6 @@
|
||||||
function virtualenv_prompt_info(){
|
function virtualenv_prompt_info(){
|
||||||
if [[ -n $VIRTUAL_ENV ]]; then
|
[[ -n ${VIRTUAL_ENV} ]] || return
|
||||||
printf "%s[%s] " "%{${fg[yellow]}%}" ${${VIRTUAL_ENV}:t}
|
echo "${ZSH_THEME_VIRTUALENV_PREFIX:=[}${VIRTUAL_ENV:t}${ZSH_THEME_VIRTUALENV_SUFFIX:=]}"
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# disables prompt mangling in virtual_env/bin/activate
|
# disables prompt mangling in virtual_env/bin/activate
|
||||||
|
|
Loading…
Reference in New Issue
Block a user