From 7644878de0c820a76012907a9304d9f0fe88a80a Mon Sep 17 00:00:00 2001 From: dmarakom6 Date: Sun, 13 Jun 2021 12:55:45 +0300 Subject: [PATCH] Fix shellnotes.sh clone --- shellnotes.sh | 60 ++++++++++++++++++++++++---------------------- util/shellnotes.sh | 1 + 2 files changed, 33 insertions(+), 28 deletions(-) diff --git a/shellnotes.sh b/shellnotes.sh index 200fb2c..57ea367 100644 --- a/shellnotes.sh +++ b/shellnotes.sh @@ -1,29 +1,33 @@ -:<<'info' -shellnotes - shellnotes.sh -(C) Dimitris Marakomihelakis -Released under the "All rights reserved" category. See the RIGHTS.txt file -in /docs/github/ for its full text. -info -function shellnotes() { - . ~/.shellnotes/util/h/h.sh - . ~/.shellnotes/util/v/v.sh - . ~/.shellnotes/util/r/r.sh - . ~/.shellnotes/util/u/u.sh - . ~/.shellnotes/util/l/l.sh - . ~/.shellnotes/util/au/au.sh - . ~/.shellnotes/util/sd/sd.sh - . ~/.shellnotes/util/i/i.sh - if [[ $# > 1 ]]; then - echo "Too many arguments." - elif [[ $# = 0 ]];then - cd ~ - if [ -e .shellnotes/.shellnotes.sh ]; then - echo "Shellnotes is successfully installed. For help, type shellnotes --help." - cd $DIR - else - echo "Shellnotes is not installed properly. Please repeat installation steps or try shellnotes --help." - cd $DIR - fi - fi -} + +#The first line is the user's default shell found during installation process. +#Warning! If you don't have gedit(text editor) or nano installed, you may have to change the default text editor (lines 10, 25, 40). + +#The lines below must NOT be changed. +DIR="$(pwd)" +. ~/.shellnotes/util/getv.sh +. ~/.shellnotes/def/defaults.sh +. ~/.shellnotes/util/ChMkDir.sh +. ~/.shellnotes/util/readnote.sh +. ~/.shellnotes/util/quickread.sh +. ~/.shellnotes/util/quicknote.sh +. ~/.shellnotes/util/newnote.sh +. ~/.shellnotes/util/delnote.sh +. ~/.shellnotes/util/listnotes.sh +. ~/.shellnotes/util/findnote.sh +. ~/.shellnotes/util/findmisplacednote.sh +. ~/.shellnotes/util/renamenote.sh +. ~/.shellnotes/util/notewc.sh +. ~/.shellnotes/util/notegrep.sh + + + +. ~/.shellnotes/util/shellnotes.sh +. ~/.shellnotes/util/.hidden/.clearlogs.sh +. ~/.shellnotes/util/.hidden/.resetshellnotes.sh +. ~/.shellnotes/util/syntax/.logsyntax.sh +. ~/.shellnotes/util/syntax/.copr.sh +. ~/.shellnotes/util/syntax/.dir.sh +. ~/.shellnotes/util/syntax/.me.sh +. ~/.shellnotes/util/syntax/.dir.sh +. ~/.shellnotes/util/syntax/.param.sh \ No newline at end of file diff --git a/util/shellnotes.sh b/util/shellnotes.sh index 581db2a..200fb2c 100644 --- a/util/shellnotes.sh +++ b/util/shellnotes.sh @@ -13,6 +13,7 @@ function shellnotes() { . ~/.shellnotes/util/l/l.sh . ~/.shellnotes/util/au/au.sh . ~/.shellnotes/util/sd/sd.sh + . ~/.shellnotes/util/i/i.sh if [[ $# > 1 ]]; then echo "Too many arguments." elif [[ $# = 0 ]];then