mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
[rkj-repos] Check for hg in hg prompt function
This commit is contained in:
parent
6e24ba5a13
commit
8fbf066297
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# user, host, full path, and time/date on two lines for easier vgrepping
|
||||
|
||||
function hg_prompt_info {
|
||||
if grep -q "prompt" ~/.hgrc; then
|
||||
if (( $+commands[hg] )) && grep -q "prompt" ~/.hgrc; then
|
||||
hg prompt --angle-brackets "\
|
||||
<hg:%{$fg[magenta]%}<branch>%{$reset_color%}><:%{$fg[magenta]%}<bookmark>%{$reset_color%}>\
|
||||
</%{$fg[yellow]%}<tags|%{$reset_color%}, %{$fg[yellow]%}>%{$reset_color%}>\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue