2012-07-03 17:21:48 +02:00
|
|
|
## -*- mode:sh -*- #
|
2013-05-24 20:01:46 +02:00
|
|
|
## Shell configuration
|
2012-06-15 16:54:02 +02:00
|
|
|
|
2013-06-03 20:18:14 +02:00
|
|
|
## Terminal
|
2013-08-04 17:36:01 +02:00
|
|
|
## WARNING: this is often a bad idea!
|
2013-06-03 20:18:14 +02:00
|
|
|
## FreeBSD urxvt $TERM variable is not set properly for some reasons.
|
2013-11-14 18:12:57 +01:00
|
|
|
if [ ! "$(uname -o)" = "GNU/Linux" ]; then
|
2014-11-12 17:22:59 +01:00
|
|
|
case "$TERM" in
|
|
|
|
*rxvt*) export TERM="rxvt-unicode-256color";;
|
|
|
|
esac
|
2013-06-03 20:18:14 +02:00
|
|
|
fi
|
|
|
|
## Most xterm-based terminals support 256 colors, so let's turn this on.
|
|
|
|
if [ "$TERM" = "xterm" ]; then
|
2014-11-12 17:22:59 +01:00
|
|
|
export TERM="xterm-256color"
|
2013-06-03 20:18:14 +02:00
|
|
|
fi
|
|
|
|
|
2012-08-13 18:18:56 +02:00
|
|
|
## Enable color support of ls.
|
2012-10-29 15:29:54 +01:00
|
|
|
if [ "$TERM" != "dumb" ] && [ "$OSTYPE" = "linux-gnu" ]; then
|
2014-11-12 17:22:59 +01:00
|
|
|
eval "$(dircolors "$HOME/.shell.d/dircolorsdb")"
|
2012-10-29 18:04:34 +01:00
|
|
|
elif [ "$TERM" != "dumb" ]; then
|
2014-11-12 17:22:59 +01:00
|
|
|
export LSCOLORS="Ex"
|
|
|
|
# export LSCOLORS="ExfxcxDxCxdxdxCxCxECEh"
|
2012-08-13 18:18:56 +02:00
|
|
|
fi
|
|
|
|
|
2012-07-09 18:39:55 +02:00
|
|
|
## Title
|
|
|
|
## If this is an xterm set the title to user@host:dir
|
|
|
|
#case "$TERM" in
|
|
|
|
#xterm*|rxvt*)
|
|
|
|
# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
|
|
|
|
# ;;
|
|
|
|
#*)
|
|
|
|
# ;;
|
|
|
|
#esac
|