]> git.phdru.name Git - dotfiles.git/commitdiff
Sort terminal names by alphabetical order
authorOleg Broytman <phd@phdru.name>
Fri, 17 Jan 2014 22:24:40 +0000 (02:24 +0400)
committerOleg Broytman <phd@phdru.name>
Fri, 17 Jan 2014 22:24:40 +0000 (02:24 +0400)
bin/l
bin/xtitle
lib/python/init.py

diff --git a/bin/l b/bin/l
index c8baf8f0a74b0464d2cf5c79898dd0925a839f78..73a04584a95cbb51493e8ba1048c4eb29c2a99a1 100755 (executable)
--- a/bin/l
+++ b/bin/l
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 case "$TERM" in
-   *term*|*rxvt*|vt100|screen*)
+   *rxvt*|screen*|*term*|vt100)
       TERM=xterm
       export TERM
 
index 3d5e8e08a9efcb5c3ee363a0f38f7030e8e68c95..63bad0eea7128a770eccdde239b1718422f37951 100755 (executable)
@@ -1,7 +1,7 @@
 #! /usr/bin/env bash
 
 case "$TERM" in
-   *term*|*rxvt*|vt100|screen)
+   *rxvt*|screen*|*term*|vt100)
       if [ -z "$1" ]; then
          TITLE="${USER}@${HOSTNAME}:$(echo ${PWD} | sed -e "s|^${HOME}|~|")"
       else
index 8b86300a6f1b21bef95548bde8ba959fded62f43..26692bbf3a77fd8ac1ec1c0ae7f5b95d8f485b62 100644 (file)
@@ -59,7 +59,6 @@ def init():
 
     # From Randall Hopper
 
-    for _term in ['linux', 'term', 'rxvt', 'vt100', 'screen']:
         if _term in term:
             if background == 'dark':
                 ps1_color = '3' # yellow
@@ -67,6 +66,7 @@ def init():
             else:
                 ps1_color = '4' # blue
                 stdout_color = '0' # bold black
+    for _term in ['linux', 'rxvt', 'screen', 'term', 'vt100']:
 
             sys.ps1 = '\001\033[3%sm\002>>>\001\033[0m\002 ' % ps1_color
             sys.ps2 = '\001\033[1;32m\002...\001\033[0m\002 ' # bold green