1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 07:20:40 +01:00

ignore any grep aliases that might be defined

This commit is contained in:
DanielFGray
2014-11-16 02:47:35 -06:00
parent df5b09e20b
commit 00ec11d3c0
7 changed files with 16 additions and 16 deletions

View File

@@ -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