diff options
Diffstat (limited to 'grepnote')
-rwxr-xr-x | grepnote | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6,10 +6,10 @@ GREP=/usr/bin/grep 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." + echo "You must provide a search term as the argument to this command." exit 1 else - TARGET=$1 + TARGET="$1" fi # test for rg @@ -18,6 +18,6 @@ if ! [[ -x $RG_BIN ]]; then fi # rg --heading -i "joanna" ~/Notes/journal/ -$CMD $TARGET $NOTES +$CMD "$TARGET" $NOTES |