From ff7be9ac4019bdacdce52888f5029e99699bd210 Mon Sep 17 00:00:00 2001 From: ZyX Date: Thu, 10 Jul 2014 23:40:15 +0400 Subject: [PATCH] Set VIRTUAL_ENV_DISABLE_PROMPT to 1 Otherwise powerline prompt is being prefixed by `(virtualenv-name)` in zsh which looks rather ugly. In bash prompt is always overridden by PROMPT_COMMAND, thus there is no actual need to set this variable. --- powerline/bindings/bash/powerline.sh | 1 + powerline/bindings/zsh/powerline.zsh | 1 + 2 files changed, 2 insertions(+) diff --git a/powerline/bindings/bash/powerline.sh b/powerline/bindings/bash/powerline.sh index 7094ae5f..67c1d8bb 100644 --- a/powerline/bindings/bash/powerline.sh +++ b/powerline/bindings/bash/powerline.sh @@ -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 diff --git a/powerline/bindings/zsh/powerline.zsh b/powerline/bindings/zsh/powerline.zsh index 797c216f..aad0df53 100644 --- a/powerline/bindings/zsh/powerline.zsh +++ b/powerline/bindings/zsh/powerline.zsh @@ -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'