diff options
author | Matthew Lemon <chaffinach+git@protonmail.ch> | 2022-01-07 13:51:05 +0000 |
---|---|---|
committer | Matthew Lemon <chaffinach+git@protonmail.ch> | 2022-01-07 13:51:05 +0000 |
commit | ecc038b6bfc0dfdd4a7a8c333218324542b873f5 (patch) | |
tree | 43801deceb942cccbc32ed2afc9e66250725bc53 | |
parent | 0a354ef141694383ad4339be36451c28149162fd (diff) |
finished grepnote
-rwxr-xr-x | grepnote | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |