Write wrapper that allows setting of global configs #1

Closed
opened 2018-04-27 19:15:18 +00:00 by iamthefij · 1 comment
Owner

Right now md.sh will query within the current directory. That's great, but a lot of time's, notes are kept in a consistent place.

It'd be great to be able to just open any terminal and type md.sh tasks and see all my open tasks.

Right now `md.sh` will query within the current directory. That's great, but a lot of time's, notes are kept in a consistent place. It'd be great to be able to just open any terminal and type `md.sh tasks` and see all my open tasks.
Author
Owner

This is covered now using $MARKDONE_BASE_DIR for the directory you want to query.

Example script I'm using:

#! /bin/bash

if [ ! -d "$HOME/Nextcloud/Notes" ]; then
    echo "No directory $HOME/Nextcloud/Notes. Please sync your notes"
    exit 1
fi

export MARKDONE_BASE_DIR=$HOME/Nextcloud/Notes

~/workspace/markdone/md.sh $@
This is covered now using `$MARKDONE_BASE_DIR` for the directory you want to query. Example script I'm using: ```bash #! /bin/bash if [ ! -d "$HOME/Nextcloud/Notes" ]; then echo "No directory $HOME/Nextcloud/Notes. Please sync your notes" exit 1 fi export MARKDONE_BASE_DIR=$HOME/Nextcloud/Notes ~/workspace/markdone/md.sh $@ ```
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: iamthefij/markdone#1
No description provided.