Changes between Version 16 and Version 17 of 256Colors


Ignore:
Timestamp:
Mar 15, 2012, 9:25:19 PM (12 years ago)
Author:
andersk@mit.edu
Comment:

Better terminal detection for ~/.bashrc

Legend:

Unmodified
Added
Removed
Modified
  • 256Colors

    v16 v17  
    55#!sh
    66case "$TERM" in
    7     xterm) TERM=xterm-256color;;
     7    xterm)
     8        read -d '' terminal terminal_args < /proc/$PPID/cmdline
     9        case "${terminal##*/}" in
     10            gnome-terminal*|xterm*) TERM="$TERM-256color";;
     11        esac
     12        unset terminal terminal_args
     13        ;;
    814esac
    915}}}