Added hcpn script

This commit is contained in:
2022-01-04 17:17:22 -05:00
parent 1cf65faff0
commit d85d10f1eb
3 changed files with 13 additions and 1 deletions

10
scripts/scripts/hcpn Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
# Creates a new `zet` inside the House Call Pro `Zettlekasten` directory.
dirname="$(isosec)"
mkdir "${HCP_NOTES}/${dirname}"
readme="${HCP_NOTES}/${dirname}/README.md"
title="$*"
printf "# %s\n\n" "${title}" > "${readme}"
vi "${readme}"