aboutsummaryrefslogtreecommitdiff
path: root/noteutil.cheat
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-12-31 12:47:22 +0800
committerGuangxiong Lin <[email protected]>2023-12-31 12:48:31 +0800
commit6ebd2799984879e3520d1421cff4e8c0792c4758 (patch)
treefca740a4a51f2cdc833bab0e4e5e9cb7b88ff74e /noteutil.cheat
parent340cefd405d2abf78837f25ebafdcf284f21bf47 (diff)
downloadnavi-cheats-6ebd2799984879e3520d1421cff4e8c0792c4758.tar.gz
navi-cheats-6ebd2799984879e3520d1421cff4e8c0792c4758.tar.bz2
navi-cheats-6ebd2799984879e3520d1421cff4e8c0792c4758.zip
Update scripts
Diffstat (limited to 'noteutil.cheat')
-rw-r--r--noteutil.cheat4
1 files changed, 2 insertions, 2 deletions
diff --git a/noteutil.cheat b/noteutil.cheat
index 9f20b19..a37ccb1 100644
--- a/noteutil.cheat
+++ b/noteutil.cheat
@@ -1,10 +1,10 @@
% noteutil
# Generate weekly journal by template
-noteutil template weekly -o <weekly_journal>
+[ ! -f <weekly_journal> ] && noteutil template weekly -o <weekly_journal>
# Generate monthly journal by template
-noteutil template monthly -o <monthly_journal>
+[ ! -f <monthly_journal> ] && noteutil template monthly -o <monthly_journal>
$ weekly_journal: noteutil journal --period weekly --date today
$ monthly_journal: noteutil journal --period monthly --date today