Skip to content

Commit ba19c41

Browse files
committed
Merge pull request #206 from jcrypto/master
fix escapes for terminal title
2 parents 569574b + 69188e5 commit ba19c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitprompt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ function gp_truncate_pwd {
554554

555555
# Sets the window title to the given argument string
556556
function gp_set_window_title {
557-
echo -ne "\033]0;"$@"\007"
557+
echo -ne "\[\033]0;"$@"\007\]"
558558
}
559559

560560
function prompt_callback_default {

0 commit comments

Comments
 (0)