浏览代码

chore(lib): update deprecated grep aliases (#11161)

Nadhem 2 年之前
父节点
当前提交
570158e464
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/grep.zsh

+ 2 - 2
lib/grep.zsh

@@ -24,8 +24,8 @@ else
     if [[ -n "$GREP_OPTIONS" ]]; then
         # export grep, egrep and fgrep settings
         alias grep="grep $GREP_OPTIONS"
-        alias egrep="egrep $GREP_OPTIONS"
-        alias fgrep="fgrep $GREP_OPTIONS"
+        alias egrep="grep -E $GREP_OPTIONS"
+        alias fgrep="grep -F $GREP_OPTIONS"
 
         # write to cache file if cache directory is writable
         if [[ -w "$ZSH_CACHE_DIR" ]]; then