aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <chaffinach+git@protonmail.ch>2022-01-07 13:51:05 +0000
committerMatthew Lemon <chaffinach+git@protonmail.ch>2022-01-07 13:51:05 +0000
commitecc038b6bfc0dfdd4a7a8c333218324542b873f5 (patch)
tree43801deceb942cccbc32ed2afc9e66250725bc53
parent0a354ef141694383ad4339be36451c28149162fd (diff)
finished grepnote
-rwxr-xr-xgrepnote4
1 files changed, 1 insertions, 3 deletions
diff --git a/grepnote b/grepnote
index f1732dc..a33cd4f 100755
--- a/grepnote
+++ b/grepnote
@@ -3,7 +3,7 @@
NOTES=/home/$USER/Notes
RG_BIN=/usr/bin/rg
GREP=/usr/bin/grep
-CMD="$RG_BIN --heading -i"
+CMD="$RG_BIN --heading -w -i -g !"*fish-history*" -g !"*.html*" -g !"*apt-packages*" -g !"*.json" -g !"*-fish-history*" -g !"*backup*""
if [[ -z $1 ]]; then
echo "You must provide a file name as the argument to this command."
@@ -18,8 +18,6 @@ if ! [[ -x $RG_BIN ]]; then
fi
# rg --heading -i "joanna" ~/Notes/journal/
-echo $TARGET
-echo $NOTES
$CMD $TARGET $NOTES