forked from extern/ohmyzsh
fix(rkj-repos): check if ~/.hgrc
exists (#12148)
This commit is contained in:
parent
428866e28d
commit
5ea2c68be8
@ -1,7 +1,7 @@
|
|||||||
# user, host, full path, and time/date on two lines for easier vgrepping
|
# user, host, full path, and time/date on two lines for easier vgrepping
|
||||||
|
|
||||||
function hg_prompt_info {
|
function hg_prompt_info {
|
||||||
if (( $+commands[hg] )) && grep -q "prompt" ~/.hgrc; then
|
if (( $+commands[hg] )) && [[ -e ~/.hgrc ]] && grep -q "prompt" ~/.hgrc; then
|
||||||
hg prompt --angle-brackets "\
|
hg prompt --angle-brackets "\
|
||||||
<hg:%{$fg[magenta]%}<branch>%{$reset_color%}><:%{$fg[magenta]%}<bookmark>%{$reset_color%}>\
|
<hg:%{$fg[magenta]%}<branch>%{$reset_color%}><:%{$fg[magenta]%}<bookmark>%{$reset_color%}>\
|
||||||
</%{$fg[yellow]%}<tags|%{$reset_color%}, %{$fg[yellow]%}>%{$reset_color%}>\
|
</%{$fg[yellow]%}<tags|%{$reset_color%}, %{$fg[yellow]%}>%{$reset_color%}>\
|
||||||
|
Loading…
Reference in New Issue
Block a user