Search:
Login
Help/Guide
About Trac
Preferences
Wiki
Timeline
Roadmap
Browse Source
View Tickets
Search
Context Navigation
←
Previous Change
Wiki History
Next Change
→
Changes between
Version 16
and
Version 17
of
256Colors
View differences
inline
side by side
Show
lines around each change
Show the changes in full context
Ignore:
Blank lines
Case changes
White space changes
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
5
5
#!sh
6
6
case "$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
;;
8
14
esac
9
15
}}}