Browse Source

Always follow symlinks in recursive grep's

Alois Mahdal 6 years ago
parent
commit
6b7669ba4b
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      dotfiles/bash/main.bashrc

+ 3
- 3
dotfiles/bash/main.bashrc View File

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() {