mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
themes/prose: make the Mercurial binary configurable
This commit is contained in:
parent
a88f0fc493
commit
9f202fc05f
1 changed files with 5 additions and 1 deletions
|
|
@ -1,9 +1,13 @@
|
||||||
|
if [ "x$OH_MY_ZSH_HG" = "x" ]; then
|
||||||
|
OH_MY_ZSH_HG="hg"
|
||||||
|
fi
|
||||||
|
|
||||||
function virtualenv_info {
|
function virtualenv_info {
|
||||||
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
|
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
|
||||||
}
|
}
|
||||||
|
|
||||||
function hg_prompt_info {
|
function hg_prompt_info {
|
||||||
hg prompt --angle-brackets "\
|
$OH_MY_ZSH_HG prompt --angle-brackets "\
|
||||||
< on %{$fg[magenta]%}<branch>%{$reset_color%}>\
|
< on %{$fg[magenta]%}<branch>%{$reset_color%}>\
|
||||||
< at %{$fg[yellow]%}<tags|%{$reset_color%}, %{$fg[yellow]%}>%{$reset_color%}>\
|
< at %{$fg[yellow]%}<tags|%{$reset_color%}, %{$fg[yellow]%}>%{$reset_color%}>\
|
||||||
%{$fg[green]%}<status|modified|unknown><update>%{$reset_color%}<
|
%{$fg[green]%}<status|modified|unknown><update>%{$reset_color%}<
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue