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