]> git.phdru.name Git - dotfiles.git/commitdiff
bin/xtitle: fix bashism
authorOleg Broytman <phd@phdru.name>
Fri, 17 Mar 2017 07:17:59 +0000 (10:17 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 17 Mar 2017 07:17:59 +0000 (10:17 +0300)
bin/xtitle

index 4c1cefc987e92d09ebefa7fda5670ccac1ddc971..f734659d5a4a9ea7d7f7f5e03b7adeeb4cb7068c 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env bash
+#! /bin/sh
 
 case "$TERM" in
    *rxvt*|screen*|*term*|vt100)
@@ -7,10 +7,10 @@ case "$TERM" in
       else
          TITLE="$@"
       fi
-      echo -ne "\033]0;${TITLE}\007" # Set xterm title
+      echo -n "\033]0;${TITLE}\007" # Set xterm title
       case "$TERM" in
          screen*)
-            echo -ne "\033k${TITLE}\033\\" # Set screen/tmux caption
+            echo -n "\033k${TITLE}\033\\" # Set screen/tmux caption
          ;;
       esac
    ;;