shellnotes/util/newnote.sh
dmarakom6 5595885bbc Fix directory bug
Fix not getting back to starting dir
2021-07-05 15:49:58 +03:00

17 lines
No EOL
376 B
Bash

:<<'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
function newnote() {
DIR="$(pwd)"
cd $DEFAULT_PATH
$NOTES_EDITOR
clear
str="Note created in $DEFAULT_PATH"
underlines=$(echo "$str" | tr -c '\010' '-')
echo "$str\n$underlines"
cd $DIR
}