From 6e32ba0ca078f94194d5ce23b5307f0a4fd293fd Mon Sep 17 00:00:00 2001 From: Leonid Volnitsky Date: Wed, 11 Dec 2013 23:49:16 +0200 Subject: work around for vte.sh --- git-prompt.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/git-prompt.sh b/git-prompt.sh index 1cf4b4e..adb6945 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -1,13 +1,18 @@ # don't set prompt if this is not interactive shell [[ $- != *i* ]] && return + # clear vars from previous invocation + unset dir_color rc_color user_id_color root_id_color init_vcs_color clean_vcs_color + unset modified_vcs_color added_vcs_color addmoded_vcs_color untracked_vcs_color op_vcs_color detached_vcs_color hex_vcs_color + unset rawhex_len + + # work around for conflict with vte.sh + unset VTE_VERSION + ################################################################### CONFIG ##### read config file if any. - unset dir_color rc_color user_id_color root_id_color init_vcs_color clean_vcs_color - unset modified_vcs_color added_vcs_color addmoded_vcs_color untracked_vcs_color op_vcs_color detached_vcs_color hex_vcs_color - unset rawhex_len conf=git-prompt.conf; [[ -r $conf ]] && . $conf conf=/etc/git-prompt.conf; [[ -r $conf ]] && . $conf @@ -429,6 +434,9 @@ parse_git_status() { unset branch status modified added clean init added mixed untracked op detached + # work around for VTE bug (hang on printf) + unset VTE_VERSION + # info not in porcelain status eval " $( git status 2>/dev/null | -- cgit v1.2.3