From 69188e5d0d2abb2942a43cc3f16f7153ba52143a Mon Sep 17 00:00:00 2001 From: Jernej Tonejc Date: Mon, 2 Nov 2015 16:50:59 +0100 Subject: [PATCH] fix escapes for terminal title --- gitprompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitprompt.sh b/gitprompt.sh index d28a26a..83a3002 100755 --- a/gitprompt.sh +++ b/gitprompt.sh @@ -542,7 +542,7 @@ function gp_truncate_pwd { #Sets the window title to the given argument string function gp_set_window_title { - echo -ne "\033]0;"$@"\007" + echo -ne "\[\033]0;"$@"\007\]" } function prompt_callback_default {