This repository has been archived on 2021-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
plan9-scripts/z/new

9 lines
192 B
Bash
Executable File

#!/bin/rc
# z/new - create a new zettelkasten note
basepath=$oshome/vimwiki/zettel/
id=`{date -f 'YYYYMMDDhhmmss'}
notepath=$basepath^'/'^$id^'.md'
echo '#' $id - > $notepath
plumb $notepath