Skip to content

gufertum/note.sh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

note.sh

‼️ This is my personal fork of note.sh. I added some more actions and support for multiple 'folders' (home,work, etc, see Multi-account setup).

A simple shell script for managing your random daily notes. Every time you run note.sh it opens a Markdown file for that day. For example, if today was Dec 2, 2020, it would create a Markdown file called 2020-12-02.md in your notes directory.

This script was heavily inspired by todo.txt-cli.

Features

  • Simple: 1 Bash script, 1 environment variable and 1 symlink.
  • Markdown.
  • Search notes.
  • Sync notes across multiple computers.

Setup

  1. Configure and export NOTE_DIR environment variable. Add the environment variable NOTE_DIR to your shell's RC file:

    export NOTE_DIR=$HOME/Notes

    To sync across multiple computers, I put my notes directory inside of my Dropbox folder: $HOME/Dropbox/Notes.

  2. Symlink script to your /usr/local/bin.

    $ make install

    To remove the symlink run: make uninstall.

Multi-account setup

To support multiple accounts - different folders, possible synced differently - you must call note.sh with another NOTE_DIR. So for this setup to use it easily, you should create aliases like this (example):

alias note-home="export NOTE_DIR=/home/user/Dropbox/notes-home; note.sh"
alias note-work="export NOTE_DIR=/home/user/Seafile/notes-work; note.sh"

If you use note.sh directly, this will use the last NOTE_DIR you accessed.

About

A simple shell script for managing your notes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 96.4%
  • Makefile 3.6%