From 79908d0f06a13adb62ed11b8935741cbee5d396b Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 7 Jan 2022 13:57:41 +0000 Subject: can now search for term --- grepnote | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'grepnote') diff --git a/grepnote b/grepnote index a33cd4f..b42dfe0 100755 --- a/grepnote +++ b/grepnote @@ -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 -- cgit v1.2.3