Artifact a7e325e945dda51f115fa1b636bbcc2f36cc24dd71efbef8f682c816faa703c6:
- File www/fossil_prompt.wiki — part of check-in [0996347d4a] at 2019-08-16 01:57:48 on branch trunk — Another spell check pass on www/* using a different dictionary than in the prior pass. ([79c2cb083152]) (user: wyoung size: 767) [more...]
Fossilized Bash Prompt
2013-02-21
Dan Kennedy has contributed a bash script that manipulates the bash prompt to show the status of the Fossil repository that the user is currently visiting. The prompt shows the branch, version, and time stamp for the current checkout, and the prompt changes colors from blue to red when there are uncommitted changes.
To try out this script, simply download it from the link above, then type:
. fossil_prompt.sh
For a permanent installation, you can graft the code into your .bashrc file in your home directory.
The code is very simple (only 32 non-comment lines, as of this writing) and hence easy to customized.