summaryrefslogtreecommitdiff
path: root/git-prompt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-prompt.sh')
-rwxr-xr-xgit-prompt.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-prompt.sh b/git-prompt.sh
index ee025a1..e851fd9 100755
--- a/git-prompt.sh
+++ b/git-prompt.sh
@@ -222,7 +222,10 @@ cwd_truncate() {
set_shell_label() {
- xterm_label() { echo -n "]2;${@}" ; } # FIXME: replace hardcodes with terminfo codes
+ xterm_label() {
+ local args="$*"
+ echo -n "]2;${args:0:200}" ; # FIXME: replace hardcodes with terminfo codes
+ }
screen_label() {
# FIXME: run this only if screen is in xterm (how to test for this?)