Skip to content

Instantly share code, notes, and snippets.

@lukepighetti
Created March 3, 2023 15:41
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lukepighetti/0ccb8fb318982c11cb287cac6cfdb5cd to your computer and use it in GitHub Desktop.
Save lukepighetti/0ccb8fb318982c11cb287cac6cfdb5cd to your computer and use it in GitHub Desktop.
marksman environment for note taking https://youtu.be/8GQKOLh_V5E
# launch daily notes with `notes`
# launch specific notes with `notes woodworking`
# this is a cloud synced file, so it's live on all my devices
function notes(){
SUBJECT="${1:=daily}"
if [ -z "$SUBJECT" ]
then
(cd ~/Documents/notes && hx NOTES.md)
else
(cd ~/Documents/notes && hx "${SUBJECT:u}.md" NOTES.md)
fi
}
# this goes on your path
# put the date in helix with `!day`
# chmod +x day
date +"%a %b %d"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment