diff options
| author | cashmere <cashmere@autistici.org> | 2026-09-04 09:05:24 +0200 |
|---|---|---|
| committer | cashmere <cashmere@autistici.org> | 2026-09-04 09:05:24 +0200 |
| commit | 4f49b16079b27d7ce633619e4cddfdf2bffbc952 (patch) | |
| tree | c296c1e7f3c3e2f6859c6d3a1b1b208779b89679 /www/fossil_prompt.wiki | |
| download | relic-4f49b16079b27d7ce633619e4cddfdf2bffbc952.tar.gz | |
Diffstat (limited to 'www/fossil_prompt.wiki')
| -rw-r--r-- | www/fossil_prompt.wiki | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/www/fossil_prompt.wiki b/www/fossil_prompt.wiki new file mode 100644 index 0000000..5c60aef --- /dev/null +++ b/www/fossil_prompt.wiki @@ -0,0 +1,22 @@ +<title>Fossilized Bash Prompt</title> + +Dan Kennedy has contributed a +[./fossil_prompt.sh?mimetype=text/plain | 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: + +<pre> +. fossil_prompt.sh +</pre> + +For a permanent installation, you can graft the code into your +<tt>.bashrc</tt> file in your home directory. + +The code is very simple (only 32 non-comment lines, as of this writing) +and hence easy to customize. |
