Merge branch 'disable-virtualenv-prompt' into develop

This commit is contained in:
ZyX 2014-07-10 23:40:26 +04:00
commit 2d1a964e32
2 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ _powerline_prompt() {
}
_powerline_setup_prompt() {
VIRTUAL_ENV_DISABLE_PROMPT=1
if test -z "${POWERLINE_COMMAND}" ; then
if which powerline-client &>/dev/null ; then
export POWERLINE_COMMAND=powerline-client

View File

@ -111,6 +111,7 @@ _powerline_setup_prompt() {
fi
done
precmd_functions+=( _powerline_set_jobnum )
VIRTUAL_ENV_DISABLE_PROMPT=1
if test -z "${POWERLINE_NO_ZSH_ZPYTHON}" && { zmodload libzpython || zmodload zsh/zpython } &>/dev/null ; then
precmd_functions+=( _powerline_update_counter )
zpython 'from powerline.bindings.zsh import setup as _powerline_setup'