|
1
|
<title>Fossilized Bash Prompt</title> |
|
2
|
|
|
3
|
Dan Kennedy has contributed a |
|
4
|
[./fossil_prompt.sh?mimetype=text/plain | bash script] |
|
5
|
that manipulates the bash prompt to show the status of |
|
6
|
the Fossil repository that the user is currently visiting. |
|
7
|
The prompt shows the branch, version, and time stamp for the |
|
8
|
current checkout, and the prompt changes colors from blue to |
|
9
|
red when there are uncommitted changes. |
|
10
|
|
|
11
|
To try out this script, simply download it from the link above, then |
|
12
|
type: |
|
13
|
|
|
14
|
<pre> |
|
15
|
. fossil_prompt.sh |
|
16
|
</pre> |
|
17
|
|
|
18
|
For a permanent installation, you can graft the code into your |
|
19
|
<tt>.bashrc</tt> file in your home directory. |
|
20
|
|
|
21
|
The code is very simple (only 32 non-comment lines, as of this writing) |
|
22
|
and hence easy to customize. |
|
23
|
|