From 1f4d77422386502ce5a67b101be6d6f16eff2175 Mon Sep 17 00:00:00 2001 From: danix Date: Tue, 18 Apr 2023 07:10:03 +0200 Subject: added showconf option. Fixed bug that prevented the rc file from being correctly sourced for GIT variables. --- SOURCE/CORE/helpers.sh | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'SOURCE/CORE/helpers.sh') diff --git a/SOURCE/CORE/helpers.sh b/SOURCE/CORE/helpers.sh index b7b9180..38da28c 100644 --- a/SOURCE/CORE/helpers.sh +++ b/SOURCE/CORE/helpers.sh @@ -34,21 +34,24 @@ helptext() { } configtext() { - cat << __NOWCONF__ -${BASENAME} configuration is: + [ $USEGIT ] && GITUSE="enabled" || GITUSE="disabled" + clear + echo -e "${BASENAME} configuration is:" -base directory: ${BASEDIR}/ -notes archive: ${NOTESDIR}/ -notes database: ${DB} -rc file: $RCFILE -debug file: /tmp/debug_bash-note.log + echo -e "base directory: ${BASEDIR}/" + echo -e "notes archive: ${NOTESDIR}/" + echo -e "notes database: ${DB}" + echo -e "rc file: $RCFILE" + echo -e "debug file: /tmp/debug_bash-note.log" -text editor: ${EDITOR} -terminal: ${TERMINAL} -jq executable: ${JQ} -PAGER: ${PAGER} -__NOWCONF__ + echo -e "text editor: ${EDITOR}" + echo -e "terminal: ${TERMINAL}" + echo -e "jq executable: ${JQ}" + echo -e "PAGER: ${PAGER}" + echo -e "GIT use: ${GITUSE}" + echo -e "GIT remote: ${GITREMOTE}" + echo -e "GIT sync delay: ${GITSYNCDELAY}" } # this function returns a random 2 words title -- cgit v1.2.3