X-Git-Url: https://arthur.barton.de/gitweb/?p=ConfigScripts.git;a=blobdiff_plain;f=sys%2Fprofile;fp=sys%2Fprofile;h=45732280531d70e767c6c4b81a8a24dc1438f4d5;hp=1b27afcd89bdabd9bf23e0d6ec2137a24c9018ea;hb=7b9245e61c296ec01ec1d64d2077265c0c87cbfa;hpb=6ea4afde270aee50345e7bb6fa0936eee9925307 diff --git a/sys/profile b/sys/profile index 1b27afc..4573228 100644 --- a/sys/profile +++ b/sys/profile @@ -40,6 +40,14 @@ fi # Clean up ... unset LC_CTYPE LC_encoding 2>/dev/null +# Fix TERM: +# Use "xterm-256color" for xterm's (and the like) when it is available +[ "$TERM" = "xterm" -a -r "/usr/share/terminfo/x/xterm+256color" ] \ + && export TERM="xterm-256color" +# Don't use "xterm-256color" when it is not available +[ "$TERM" = "xterm-256color" -a -r "/usr/share/terminfo/x/xterm+256color" ] \ + || export TERM="xterm" + # Initialize PATH variable if [ -x /usr/libexec/path_helper ]; then eval `/usr/libexec/path_helper -s \