diff options
| author | danix <danix@danix.xyz> | 2023-04-13 15:27:16 +0200 |
|---|---|---|
| committer | danix <danix@danix.xyz> | 2023-04-13 15:27:16 +0200 |
| commit | 4cbcb39e2007338c1c6ec17376c14b841ce6f733 (patch) | |
| tree | 18593d0254d253bcdd711581465db828f30fadb7 /SOURCE/head.sh | |
| parent | 6a1930959e1cb0ec8739254bedc6b8de2bcc20fd (diff) | |
| download | bash-notes-4cbcb39e2007338c1c6ec17376c14b841ce6f733.tar.gz bash-notes-4cbcb39e2007338c1c6ec17376c14b841ce6f733.zip | |
initial setup of git functionality. The program can now initalize a local repo and add a remote.
Diffstat (limited to 'SOURCE/head.sh')
| -rw-r--r-- | SOURCE/head.sh | 11 |
1 files changed, 10 insertions, 1 deletions
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 |
