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.sh | |
| download | relic-master.tar.gz | |
Diffstat (limited to 'www/fossil_prompt.sh')
| -rw-r--r-- | www/fossil_prompt.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/www/fossil_prompt.sh b/www/fossil_prompt.sh new file mode 100644 index 0000000..f99dabd --- /dev/null +++ b/www/fossil_prompt.sh @@ -0,0 +1,14 @@ +function set_prompt() { + case `fossil status -b` in + clean) + PS1="\[\e[1;32m\]\u@\h\[\e[0m\]:\[\e[1;36m\]\w\$\[\e[0m\] " + ;; + dirty) + PS1="\[\e[1;32m\]\u@\h\[\e[0m\]:\[\e[38;5;202m\]\w\$\[\e[0m\] " + ;; + *) + PS1="\[\e[1;32m\]\u@\h\[\e[0m\]:\w\$ " + ;; + esac +} +PROMPT_COMMAND=set_prompt |
