dotfiles

Configuration for the software I use.
git clone https://git.jaderune.net/jbauer/dotfiles
Log | Files | Refs | README | LICENSE

commit ad7bacb033bdec45c8ac476b6a8de9689faa96a7
parent 2c2b3e40291be356865c2fadf7b9ad21cac8dfdb
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Tue, 23 May 2023 12:15:24 -0400

Improve ndn script

Diffstat:
M.local/bin/ndn | 13+++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/.local/bin/ndn b/.local/bin/ndn @@ -1,11 +1,16 @@ #!/bin/sh # ndn - new daily note -# create a new daily note file +# create a new daily note file or open an existing one today=$(date +%Y-%m-%d) + cd ~/Documents/Daily\ Notes -echo "Daily Notes $today -====================== -" > "$today" + +if [ ! -f "$today" ]; then + echo "Daily Notes $today + ====================== + " > "$today" +fi + nvim "$today"