| 1 | # -*-sh-*- |
| 2 | # |
| 3 | # $Id: .bashrc,v 1.6 1996/12/08 20:33:42 mdw Exp $ |
| 4 | # |
| 5 | # Bash session things |
| 6 | # |
| 7 | |
| 8 | if [ -z "$__mdw_bashrc" ]; then |
| 9 | |
| 10 | __mdw_bashrc=done |
| 11 | |
| 12 | [ -z "$__mdw_profile" -a -r $HOME/.bash_profile ] && . $HOME/.bash_profile |
| 13 | [ -r /etc/bashrc ] && . /etc/bashrc |
| 14 | |
| 15 | # --- First of all, set up the prompt string --- |
| 16 | |
| 17 | if [ -t 0 ]; then |
| 18 | |
| 19 | if [ "$TERM" = "dumb" ]; then |
| 20 | if (( EUID == 0 )); then PS1="# "; else PS1="\$ "; fi |
| 21 | PS2="> " |
| 22 | PS4="+ " |
| 23 | else |
| 24 | |
| 25 | case "$TERM" in |
| 26 | linux*|screen*|xterm*|vt100*) |
| 27 | bold='\[\e[1m\]' unbold='\[\e[m\]' nl='\[\r\]' ;; |
| 28 | *) |
| 29 | bold='' unbold='' nl='' ;; |
| 30 | esac |
| 31 | |
| 32 | if (( EUID == 0 )); then |
| 33 |