## -*- mode:sh -*- # ## Shell configuration ## Terminal ## WARNING: this is often a bad idea! ## FreeBSD urxvt $TERM variable is not set properly for some reasons. if [ ! "$(uname -o)" = "GNU/Linux" ]; then case "$TERM" in *rxvt*) export TERM="rxvt-unicode-256color";; esac fi ## Most xterm-based terminals support 256 colors, so let's turn this on. if [ "$TERM" = "xterm" ]; then export TERM="xterm-256color" fi ## Enable color support of ls. if [ "$TERM" != "dumb" ] && [ "$OSTYPE" = "linux-gnu" ]; then eval "$(dircolors "$HOME/.shell.d/dircolorsdb")" elif [ "$TERM" != "dumb" ]; then export LSCOLORS="Ex" # export LSCOLORS="ExfxcxDxCxdxdxCxCxECEh" fi ## 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