X-Git-Url: https://git.danix.xyz/?p=bash-notes.git;a=blobdiff_plain;f=SOURCE%2Fhead.sh;h=9617ad395e5b10907a90c1d627162e6783a3f54e;hp=6278aa10f6007ad32f7bfbcea0b70c176b22acc3;hb=4cbcb39e2007338c1c6ec17376c14b841ce6f733;hpb=6a1930959e1cb0ec8739254bedc6b8de2bcc20fd diff --git a/SOURCE/head.sh b/SOURCE/head.sh index 6278aa1..9617ad3 100644 --- a/SOURCE/head.sh +++ b/SOURCE/head.sh @@ -17,7 +17,7 @@ PID=$$ BASENAME=$( basename "$0" ) NOW=$(date +%s) -VERSION="0.3" +VERSION="0.4git" DBVERSION=${VERSION}_${NOW} set_defaults() { @@ -25,6 +25,8 @@ set_defaults() { JQ=${JQ:-/usr/bin/jq} EDITOR=${EDITOR:-/usr/bin/vim} TERMINAL=${TERMINAL:-/usr/bin/alacritty} +# Git binary only used if $USEGIT is true - See below +GIT=${GIT:-/usr/bin/git} # add options for your terminal. Remember to add the last option to execute # your editor program, otherwise the script will fail. # see example in the addnote function @@ -43,6 +45,13 @@ DB=${BASEDIR}/db.json # directory containing the actual notes NOTESDIR=${BASEDIR}/notes +### GIT SUPPORT + +# If you want to store your notes in a git repository set this to true +USEGIT=true +# Address of your remote repository +GITREMOTE=${GITREMOTE:-""} + } # end set_defaults, do not change this line. set_defaults