set own theme
This commit is contained in:
10
.zsh/theme/functions/hg.zsh
Normal file
10
.zsh/theme/functions/hg.zsh
Normal file
@@ -0,0 +1,10 @@
|
||||
function hg_prompt_info() {
|
||||
if hg root >/dev/null 2>&1; then
|
||||
local branch=$(hg branch 2>/dev/null)
|
||||
if [[ -n "$(hg status 2>/dev/null)" ]]; then
|
||||
echo "%F{yellow}‹${branch}%F{red}●%F{yellow}›%f"
|
||||
else
|
||||
echo "%F{yellow}‹${branch}›%f"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user