From: Oleg Broytman Date: Fri, 17 Jan 2014 22:24:40 +0000 (+0400) Subject: Sort terminal names by alphabetical order X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=10cf29fedbe60ef31c8917a08c6634f9a5bf45c8;p=dotfiles.git Sort terminal names by alphabetical order --- diff --git a/bin/l b/bin/l index c8baf8f..73a0458 100755 --- 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 diff --git a/bin/xtitle b/bin/xtitle index 3d5e8e0..63bad0e 100755 --- a/bin/xtitle +++ b/bin/xtitle @@ -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 diff --git a/lib/python/init.py b/lib/python/init.py index 8b86300..26692bb 100644 --- a/lib/python/init.py +++ b/lib/python/init.py @@ -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