Browse Source

Always follow symlinks in recursive grep's

Alois Mahdal 5 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,7 +94,7 @@ grepcl() {
94 94
     # The order is from older apps to newer as I was moving towards
95 95
     # weechat.
96 96
     #
97
-    grep "$@" -r \
97
+    grep "$@" -R \
98 98
         "$HOME/.config/xchat2/xchatlogs" \
99 99
         "$HOME/.config/xchat2/scrollback" \
100 100
         "$HOME/.config/hexchat/logs" \
@@ -112,7 +112,7 @@ grepfx() {
112 112
     grep --color -n \
113 113
         --exclude-dir 'utils' \
114 114
         --exclude-dir '.git' \
115
-        -o '#[F]IXME:.*' -r "$@"
115
+        -o '#[F]IXME:.*' -R "$@"
116 116
 }
117 117
 
118 118
 grepr() {
@@ -122,7 +122,7 @@ grepr() {
122 122
     # Number one tool for refactoring!
123 123
     #
124 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 128
 grepr1() {