Skip to content

Instantly share code, notes, and snippets.

@rujmah
Last active March 8, 2018 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rujmah/89fb9b0d11802e719741dc4eca85d27b to your computer and use it in GitHub Desktop.
Save rujmah/89fb9b0d11802e719741dc4eca85d27b to your computer and use it in GitHub Desktop.
Simple markdown note-taking bash script using Vim to Dropbox via command line

Simple Note-taking from command line

What it does:

  • Notes will appear in with ISO date prefix in directory
  • Running the command multiple times a day will re-open that days notes
  • Assumes you have a Dropbox account (or some directory) at the path below
  • Tested on Ubuntu 16.04 and 17.10

Implementation:

  • Put this somewhere you can excute with a single command, e.g. ~/bin
  • [Optional] Remove the .sh then you can just type notes
  • Don't forget to chmod +x the file
#!/usr/bin/env bash
#
NOTES_PATH=~/Dropbox/notes
DATENOW=`date +%Y-%m-%d`
vim $NOTES_PATH/$DATENOW.notes.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment