99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
-
+
-
-
+
+
|
}
fi
set_prompt
__precmd() {
__update_terminal_cwd
local branch=$(git symbolic-ref HEAD 2>/dev/null)
local branch=$(fossil branch current 2>/dev/null)
branch=${branch##refs/heads/}
if [ -z "$branch" ]; then
branch=$(fossil branch current 2>/dev/null)
branch=$(git symbolic-ref HEAD 2>/dev/null)
branch=${branch##refs/heads/}
fi
set_prompt $branch
}
case $TERM in
aterm|Eterm|rxvt*|uxterm*|xterm*)
|