/jt

Rapidly jot down notes from the CLI

Primary LanguageShell

jt

Travis

Jot down notes. A simplified version of jot, requested by @davidmerfield.

Creates timestamped files to rapidly jot down notes from the CLI.

Installation

Add the jt script to your $PATH or create a function similar to:

jt() { 
  bash /path/to/jt "${@}" 
}

jt defaults to writing to $HOME/Notes. You can customize this by setting $JT_DIR to something else (e.g. export JT_DIR="$HOME/Dropbox/Notes").

You'll also want to make sure $EDITOR is set to your preferred editor (e.g. export EDITOR='vim').

Usage

jt [<arguments>]

  Creates a file in $JT_DIR/YYYY-mm-dd-HH:MM:SS.txt.

Options:
  -h --help  Show this.
  <data>     Populate file with <data>. If not set, open file for editing.

License

MIT © Paul Esch-Laurent.