1 bash_prompt is a collection of custom bash prompts to be loaded using the
2 provided `set_prompt` function.
4 Example of use, assuming that bash_prompt is under ~/.bash/:
6 # load git prompt support
7 [ -f /usr/lib/git-core/git-sh-prompt ] && . /usr/lib/git-core/git-sh-prompt
9 # load function to set custom shell prompts
10 if [ -f ~/.bash/bash_prompt/set_prompt ];
12 . ~/.bash/bash_prompt/set_prompt
14 # set a different prompt for the root user
23 The prompts can contain backslash-escaped special characters as specified in
24 the bash(1) man page, or any ANSI escape sequences as described in the
25 console_codes(4) man page.
27 The `set_prompt` function defines symbolic constants for the most used escape
28 sequences, see the source code for the details.
30 Inspired by bashish: http://bashish.sourceforge.net/