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}"

View File

@@ -5,7 +5,7 @@ set autowrite " automatically write files when changing
set background=dark
set backspace=indent,eol,start
set belloff=all
" set colorcolumn=120
set colorcolumn=120
set expandtab " replace tabs with spaces automatically
set exrc
set foldmethod=manual

View File

@@ -19,7 +19,9 @@ export BUCKET="/Volumes/Bucket"
export ARCHIVE="/Volumes/Archive"
export REPOS="$BUCKET/Repos"
export GHREPOS="$REPOS/github.com/$GITUSER"
export HHEREPOS="$BUCKET/Repos/github.com/hhe-dev"
export LOCAL_REPOS="$REPOS/local"
export HCP_NOTES="$HHEREPOS/hcp-notes"
export DOCUMENTS="$HOME/Documents"
export DOWNLOADS="$HOME/Downloads"
export PDFS="$HOME/Library/Mobile Documents/com~apple~Preview/Documents"