2021-02-11 18:43:51 +01:00
|
|
|
:<<'info'
|
|
|
|
shellnotes - newnote.sh
|
|
|
|
(C) Dimitris Marakomihelakis
|
|
|
|
Released under the "All rights reserved" category. See the RIGHTS.txt file
|
|
|
|
in /docs/github/ for its full text.
|
|
|
|
info
|
|
|
|
|
2021-04-25 12:23:38 +02:00
|
|
|
function newnote() {
|
2021-07-05 14:49:58 +02:00
|
|
|
DIR="$(pwd)"
|
2021-04-25 12:23:38 +02:00
|
|
|
cd $DEFAULT_PATH
|
|
|
|
$NOTES_EDITOR
|
|
|
|
clear
|
|
|
|
str="Note created in $DEFAULT_PATH"
|
|
|
|
underlines=$(echo "$str" | tr -c '\010' '-')
|
|
|
|
echo "$str\n$underlines"
|
2021-07-05 14:49:58 +02:00
|
|
|
cd $DIR
|
2021-02-11 18:43:51 +01:00
|
|
|
}
|