mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-08 16:39:50 +00:00
ignore any grep aliases that might be defined
This commit is contained in:
@@ -123,10 +123,10 @@ prompt_hg() {
|
||||
st=""
|
||||
rev=$(hg id -n 2>/dev/null | sed 's/[^-0-9]//g')
|
||||
branch=$(hg id -b 2>/dev/null)
|
||||
if `hg st | grep -Eq "^\?"`; then
|
||||
if `hg st | grep -q "^\?"`; then
|
||||
prompt_segment red black
|
||||
st='±'
|
||||
elif `hg st | grep -Eq "^(M|A)"`; then
|
||||
elif `hg st | grep -q "^(M|A)"`; then
|
||||
prompt_segment yellow black
|
||||
st='±'
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user