bin: extend jrnl-tag

This commit is contained in:
xeruf 2023-01-04 23:37:26 +01:00
parent 33a47f8460
commit 1406b016da
2 changed files with 11 additions and 2 deletions

View File

@ -1,2 +1,10 @@
#!/bin/sh -e
rpl "\(^\|[^@]\)\b$1\b" "\1@$1" $JOURNAL/*.txt
#!/bin/sh
# Find terms in jrnl and turn them into tags
# Check with jrnl --tags
if test $# -eq 0
then $0 sleep nap health tech read dev phone Zinc run bike tour laptop computer PC CB piano faith journal
else
for arg
do rpl "\(^\|[^@]\)\b$arg\b" "\1@$arg" $JOURNAL/*.txt
done
fi

View File

@ -14,3 +14,4 @@ case "$1" in
(*) sudo -E sysyadm "$@";;
esac
sudo chown -R $USER /etc/yadm
sudo chmod ugo+rw /tmp/git -R