summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2011-08-27 22:48:00 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2011-08-27 22:48:00 +0300
commit24a1f3b02de1d5b22c4ab7c1c1408211c32ce546 (patch)
treea7ae8af5b74240942c46a4582e1629ae8983e7e8
parentfixes: Issue #15 -- truncates shall label to 200 chars (diff)
downloadgit-prompt-24a1f3b02de1d5b22c4ab7c1c1408211c32ce546.tar.gz
git-prompt-24a1f3b02de1d5b22c4ab7c1c1408211c32ce546.tar.bz2
git-prompt-24a1f3b02de1d5b22c4ab7c1c1408211c32ce546.zip
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.
-rwxr-xr-xgit-prompt.sh3
1 files changed, 3 insertions, 0 deletions
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