# $Header: /root/magellan-cvs/src/bash/dot.bashrc,v 1.1 2005-07-25 17:26:21 niro Exp $ # check for an interactive shell. # it make no sense to get past this point for scp and similar. if [[ $- != *i* ]] then return fi # read /etc/profile to get global options in xterms also. source /etc/profile # export dir colors if any defines exists. # prefer user dircolors, else if not found use the system global one. if [[ -f ~/.dir_colors ]] then eval `dircolors -b ~/.dir_colors` else eval `dircolors -b /etc/DIR_COLORS` fi # some nice aliases for ls alias ls="ls --color=auto" alias ll="ls -lh --color=auto" alias la="ls -hal --color=auto" alias lsc="ls --format=single-column --color=auto" # use a nice output for the window title of xterms. case $TERM in xterm*|rxvt|Eterm|eterm) PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"' ;; screen) PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"' ;; esac