Fossil SCM

fossil-scm / www / fossil_prompt.sh
Blame History Raw 15 lines
1
function set_prompt() {
2
case `fossil status -b` in
3
clean)
4
PS1="\[\e[1;32m\]\u@\h\[\e[0m\]:\[\e[1;36m\]\w\$\[\e[0m\] "
5
;;
6
dirty)
7
PS1="\[\e[1;32m\]\u@\h\[\e[0m\]:\[\e[38;5;202m\]\w\$\[\e[0m\] "
8
;;
9
*)
10
PS1="\[\e[1;32m\]\u@\h\[\e[0m\]:\w\$ "
11
;;
12
esac
13
}
14
PROMPT_COMMAND=set_prompt
15

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button