# .bashrc -*- sh -*-

# User specific aliases and functions

# This files should only contain environment variables and such. Do
# not run any programs in here. Their output will be presenet in
# 'less' and other commands which spawn a shell.

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi
if [ -f /local/skel/all.bashrc ]; then
    . /local/skel/all.bashrc
fi

if [ -f "$HOME/.environment" ]; then
    . $HOME/.environment
fi
alias ls="ls $LS_OPTIONS"
alias ssh='ssh-add -l > /dev/null 2>&1 || ssh-add ; \ssh'

ATTR_FET="\[\033[1m\]"
ATTR_UND="\[\033[4m\]"
ATTR_INV="\[\033[7m\]"
ATTR_AV="\[\033[m\]"

case $TERM in
    linux|*xterm*|ansi|linux-lat|*Eterm*)
        export PS1=": ${ATTR_FET}\u@\h${CHROOT} \w \\\$${ATTR_AV} "
        export PS2="${ATTR_FET}>${ATTR_AV}";;
    *) 
        export PS1="\u@\h${CHROOT}:\w\$ "
        export PS2=">$";;
esac

alias mirror="wget --mirror --no-parent --convert-links -P $HOME/data/www-mirror "
