Order the list of terminals alphabetically
authorOleg Broytman <phd@phdru.name>
Wed, 1 Jan 2014 01:06:39 +0000 (05:06 +0400)
committerOleg Broytman <phd@phdru.name>
Wed, 1 Jan 2014 01:06:39 +0000 (05:06 +0400)
.profile
.vimrc

index 9a88f80..97a6624 100644 (file)
--- a/.profile
+++ b/.profile
@@ -67,7 +67,7 @@ if [ -t 0 ] ; then
          export BACKGROUND
       ;;
 
-      *term*|*rxvt*|vt100|screen*)
+      *rxvt*|screen*|*term*|vt100)
          BACKGROUND=LIGHT
          export BACKGROUND
       ;;
@@ -111,7 +111,7 @@ if [ -t 0 ] ; then
 
    BROWSER="links2:links:elinks:w3m:lynx"
    case "$TERM" in
-      *term*|*rxvt*|vt100|screen*)
+      *rxvt*|screen*|*term*|vt100)
          BROWSER="l:$BROWSER"
       ;;
    esac
@@ -144,7 +144,7 @@ if [ -t 0 ] ; then
    export OPS1
 
    case "$TERM" in
-      *term*|*rxvt*|vt100|screen*)
+      *rxvt*|screen*|*term*|vt100)
          if [ -x "`which xtitle 2>/dev/null`" ]; then
             PROMPT_COMMAND=xtitle
             export PROMPT_COMMAND
diff --git a/.vimrc b/.vimrc
index aed3f7f..194e418 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -215,7 +215,7 @@ else
       highlight Question cterm=bold ctermfg=NONE
    endif
 
-   if (&term =~ "term") || (&term =~ "rxvt") || (&term =~ "vt100") || (&term =~ "screen")
+   if (&term =~ "rxvt") || (&term =~ "screen") || (&term =~ "term") || (&term =~ "vt100")
       set <BS>=\7f
 
       " 'autoselect' to always put selected text on the clipboard;