From ecc038b6bfc0dfdd4a7a8c333218324542b873f5 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 7 Jan 2022 13:51:05 +0000 Subject: finished grepnote --- grepnote | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3