#!/bin/bash # vi:set ts=8 sw=4 et: # # File: $HOME/.bashrc # # $URL$ # $Date$ # $Revision$ # #--------------------------------------------------------------------# # If we are not in an interactive bash shell, return if [ -z "$PS1" ]; then return fi #ifdef ... if [ "$bBashrcRunning" = 1 ]; then return else bBashrcRunning=1 fi #-- Put your commands here ------------------------------------------# #--------------------------------------------------------------------# # set bash prompt PS1='\[\e[0;36m\]-(\[\e[0m\]\u\[\e[0;36m\]@\[\e[0m\]\h\[\e[0;36m\]:\[\e[0m\]'"$(tty | sed -e s@/dev/@@)"'\[\e[0;36m\])-(\[\e[0m\]\w\[\e[0;36m\])-\n \[\e[0;36m\][\[\e[0m\]$$ $?\[\e[0;36m\]]\[\e[0m\] \$ ' PATH=~/bin:$PATH # source our bashrc cd ~ source .bashrc #-- Put your commands here ------------------------------------------# # Set readline mode to `vi' : set -o vi # Bash compiled in MacPorts sometimes does not set COLUMNS and LINES # on startup. Send signal `SIGWINCH' to force it to set these two # variables. : kill -s SIGWINCH $$ # Set CVSROOT for `cvs' : export CVSROOT=:pserver:jwang@cvserver:/cvsroot #--------------------------------------------------------------------# #undef ... unset -v bBashrcRunning