2012-07-03 17:21:48 +02:00
|
|
|
## -*- mode:sh -*- #
|
2012-06-15 16:54:02 +02:00
|
|
|
################################################################################
|
2013-05-24 20:01:46 +02:00
|
|
|
## Shell configuration
|
|
|
|
## Date 2013-05-24
|
2012-06-15 16:54:02 +02:00
|
|
|
################################################################################
|
|
|
|
|
2013-06-03 20:18:14 +02:00
|
|
|
## Terminal
|
|
|
|
## WARNING: this is always a bad idea!
|
|
|
|
## FreeBSD urxvt $TERM variable is not set properly for some reasons.
|
|
|
|
## TODO: check how to do this properly.
|
|
|
|
if [ ! "$OSTYPE" = "linux-gnu" ] && [[ "$TERM" = *rxvt* ]]; then
|
|
|
|
export TERM="rxvt-unicode-256color"
|
|
|
|
fi
|
|
|
|
## Most xterm-based terminals support 256 colors, so let's turn this on.
|
|
|
|
if [ "$TERM" = "xterm" ]; then
|
|
|
|
export TERM="xterm-256color"
|
|
|
|
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
|
2012-10-04 22:03:29 +02:00
|
|
|
eval "`dircolors $HOME/.shell.d/dircolorsdb`"
|
2012-10-29 18:04:34 +01:00
|
|
|
elif [ "$TERM" != "dumb" ]; then
|
|
|
|
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
|