From 0611b388cbc8be0100b074a37fbb2704f9ef7827 Mon Sep 17 00:00:00 2001 From: dmarakom6 Date: Sun, 4 Apr 2021 11:45:05 +0300 Subject: [PATCH] parameters for "shellnotes" --- util/shellnotes.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 util/shellnotes.sh diff --git a/util/shellnotes.sh b/util/shellnotes.sh new file mode 100644 index 0000000..3e8528b --- /dev/null +++ b/util/shellnotes.sh @@ -0,0 +1,29 @@ +:<<'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() { + dir="$(pwd)" + . ~/.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 + 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 +}