2021-04-04 10:45:05 +02:00
|
|
|
:<<'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
|
2021-06-13 11:55:45 +02:00
|
|
|
. ~/.shellnotes/util/i/i.sh
|
2021-04-04 10:45:05 +02:00
|
|
|
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."
|
2021-04-19 21:20:01 +02:00
|
|
|
cd $DIR
|
2021-04-04 10:45:05 +02:00
|
|
|
else
|
|
|
|
echo "Shellnotes is not installed properly. Please repeat installation steps or try shellnotes --help."
|
2021-04-19 21:20:01 +02:00
|
|
|
cd $DIR
|
2021-04-04 10:45:05 +02:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|