From 24a1f3b02de1d5b22c4ab7c1c1408211c32ce546 Mon Sep 17 00:00:00 2001 From: Leonid Volnitsky Date: Sat, 27 Aug 2011 22:48:00 +0300 Subject: fix for enable/disable_set_shell_label I do not understand what it does. From Issue 15: Also, in exploring this problem I noticed that disable_set_shell_label doesn't work correctly for me. I fixed this problem by declaring disable_set_shell_label and enable_set_shell_label to have the "trace" attribute in bash. This is done by adding: declare -ft disable_set_shell_label and declare -ft enable_set_shell_label after the definitions of those functions in git-prompt.sh. --- git-prompt.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git-prompt.sh b/git-prompt.sh index e851fd9..41aa587 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -644,6 +644,9 @@ enable_set_shell_label() { set_shell_label $BASH_COMMAND' DEBUG >& /dev/null } +declare -ft disable_set_shell_label +declare -ft enable_set_shell_label + # autojump (see http://wiki.github.com/joelthelion/autojump) # TODO reverse the line order of a file -- cgit v1.2.3