瀏覽代碼

Always follow symlinks in recursive grep's

Alois Mahdal 6 年之前
父節點
當前提交
6b7669ba4b
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      dotfiles/bash/main.bashrc

+ 3
- 3
dotfiles/bash/main.bashrc 查看文件

94
     # The order is from older apps to newer as I was moving towards
94
     # The order is from older apps to newer as I was moving towards
95
     # weechat.
95
     # weechat.
96
     #
96
     #
97
-    grep "$@" -r \
97
+    grep "$@" -R \
98
         "$HOME/.config/xchat2/xchatlogs" \
98
         "$HOME/.config/xchat2/xchatlogs" \
99
         "$HOME/.config/xchat2/scrollback" \
99
         "$HOME/.config/xchat2/scrollback" \
100
         "$HOME/.config/hexchat/logs" \
100
         "$HOME/.config/hexchat/logs" \
112
     grep --color -n \
112
     grep --color -n \
113
         --exclude-dir 'utils' \
113
         --exclude-dir 'utils' \
114
         --exclude-dir '.git' \
114
         --exclude-dir '.git' \
115
-        -o '#[F]IXME:.*' -r "$@"
115
+        -o '#[F]IXME:.*' -R "$@"
116
 }
116
 }
117
 
117
 
118
 grepr() {
118
 grepr() {
122
     # Number one tool for refactoring!
122
     # Number one tool for refactoring!
123
     #
123
     #
124
     local p=$1; shift
124
     local p=$1; shift
125
-    grep --color -n --exclude-dir=".git" -e "$p" -r "$@"
125
+    grep --color -n --exclude-dir=".git" -e "$p" -R "$@"
126
 }
126
 }
127
 
127
 
128
 grepr1() {
128
 grepr1() {