]> git.phdru.name Git - dotfiles.git/commitdiff
bin/xtitle: refactoring
authorOleg Broytman <phd@phdru.name>
Mon, 22 Feb 2016 17:57:13 +0000 (20:57 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 22 Feb 2016 17:57:13 +0000 (20:57 +0300)
bin/xtitle

index 4530949a0537f611ebe403e5fce63437510324b7..4c1cefc987e92d09ebefa7fda5670ccac1ddc971 100755 (executable)
@@ -8,11 +8,10 @@ case "$TERM" in
          TITLE="$@"
       fi
       echo -ne "\033]0;${TITLE}\007" # Set xterm title
-   ;;
-esac
-
-case "$TERM" in
-   screen*)
-      echo -ne "\033k${TITLE}\033\\" # Set screen/tmux caption
+      case "$TERM" in
+         screen*)
+            echo -ne "\033k${TITLE}\033\\" # Set screen/tmux caption
+         ;;
+      esac
    ;;
 esac