2 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
6 # $Id: prompt.bash,v 1.2 1994/10/18 16:34:35 friedman Exp $
12 # Usage: prompt [chars]
14 # Various preformatted prompt strings selected by argument. For a
15 # list of available arguments and corresponding formats, do
23 d
) PS1
='$(dirs) \$ ' ;;
25 hsw
) PS1
='\h[$SHLVL]: \w \$ ' ;;
26 hw
) PS1
='\h: \w \$ ' ;;
27 sh
) PS1
='[$SHLVL] \h\$ ' ;;
28 sw
) PS1
='[$SHLVL] \w \$ ' ;;
30 uhsHw
) PS1
='\u@\h[$SHLVL]:\#: \w \$ ' ;;
31 uhsw
) PS1
='\u@\h[$SHLVL]: \w \$ ' ;;
32 uhw
) PS1
='\u@\h: \w \$ ' ;;
33 uw
) PS1
='(\u) \w \$ ' ;;
40 # prompt.bash ends here