aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-09-10 19:59:34 +0100
committerMatthew Lemon <matt@matthewlemon.com>2022-09-10 19:59:34 +0100
commit1744058094585ba58f4195d575174a15078bcce4 (patch)
tree47577ebd4fe1e1e52c6b3ddf5dd3155e28d73083
parent3d05c8f053670bed4f1f561fb7dc3764061f360a (diff)
parent3e3664b0ba1fab9ab2eed2796975d9edaafb1a32 (diff)
Merge branch 'master' of gitlab.com:yulqen/bash-scripts
-rwxr-xr-xbatnote_openbsd2
-rwxr-xr-xdayplan.ksh6
2 files changed, 7 insertions, 1 deletions
diff --git a/batnote_openbsd b/batnote_openbsd
index f2a8429..c40d7bc 100755
--- a/batnote_openbsd
+++ b/batnote_openbsd
@@ -4,7 +4,7 @@
# Uses bat if installed, otherwise will use less.
NOTES="/home/$USER/Notes"
-FZF_BIN="/home/$USER/.fzf/bin/fzf"
+FZF_BIN="/usr/local/bin/fzf"
CAT="/usr/bin/less"
VIM="/usr/local/bin/vim"
diff --git a/dayplan.ksh b/dayplan.ksh
index df5fe2b..b19a4e7 100755
--- a/dayplan.ksh
+++ b/dayplan.ksh
@@ -2,6 +2,12 @@
# our target file
DATE=$(date +\%Y-\%m-\%d)
+
+if [ $# -ne 0 ]
+then
+ DATE=$1
+fi
+
TODAY_PLANNER=~/Notes/journal/day_plans/$DATE.txt
if [[ -a $TODAY_PLANNER ]]