# Set the promt appearance: [07:42:23 dertraumreiter@datahaven:/foo/bar]$ PS1='[\t \u@\h:\w]\\$ ' PS2='[> ' export PS1 PS2 # Some usefull aliases. alias cp='cp -i' alias ls='ls --color=always' alias mv='mv -i' alias rm='rm -i' ### Special aliases. Only working if the programs are available. # Check if links2 is installed OR if links installed; then set alias for links2. if ( [ -x /usr/bin/links2 ] && [ -x != /usr/bin/links ] ) then alias links='links2' fi # Prepare all MP3 files in a directory for makeover. if ( [ -x /usr/bin/mp3gain ] && [ -x /usr/bin/id3v2 ] ) then alias prpmp3='id3v2 -D * && chmod 644 *' fi # Quicker start|stop|reload of Apache if ( [ -x /etc/init.d/apache2 ] ) then alias rcapache="sudo /etc/init.d/apache2" fi # Reconnect to the internet via PPPOE. if ( [ -x /usr/bin/pon ] && [ -x /usr/bin/poff ] ) then alias reconnect='sudo poff -a && sudo pon dsl-provider' fi