2021-03-28 11:39:18 +02:00
|
|
|
:<<'info'
|
|
|
|
shellnotes - .resetshellnotes.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 resetshellnotes() {
|
2021-04-24 18:10:08 +02:00
|
|
|
|
|
|
|
proceed() {
|
2021-03-28 11:39:18 +02:00
|
|
|
echo "y\n" | clearlogs >/dev/null
|
|
|
|
echo "" > ~/.shellnotes/util/listnotes/output/*
|
|
|
|
echo "/usr/bin/gedit" > ~/.shellnotes/util/sd/sd-input1.txt
|
|
|
|
echo "/bin/nano"> ~/.shellnotes/util/sd/sd-input2.txt
|
|
|
|
echo "~/Notes" > ~/.shellnotes/util/sd/sd-input3.txt
|
2021-05-04 19:56:56 +02:00
|
|
|
sed -i '1d' ~/.shellnotes/.shellnotes.sh
|
2021-04-24 18:10:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
case $1 in -f | --force )
|
|
|
|
proceed
|
|
|
|
cd $DIR
|
|
|
|
return 0
|
2021-03-28 11:39:18 +02:00
|
|
|
esac
|
2021-04-24 18:10:08 +02:00
|
|
|
|
|
|
|
echo "Be aware that this command will erase shellnotes' memory."
|
|
|
|
echo "This contains default editors and folder, logfiles and user data and cache."
|
|
|
|
echo "Your Notes will not be removed."
|
|
|
|
echo -n "Proceed? " && read input
|
|
|
|
case $input in y|Yes|Y|YES|yes)
|
|
|
|
proceed
|
|
|
|
echo "Done."
|
|
|
|
esac
|
|
|
|
|
2021-04-19 21:32:01 +02:00
|
|
|
cd $DIR
|
2021-03-28 11:39:18 +02:00
|
|
|
return 0
|
|
|
|
}
|