damshote
damshote stands for dash msh note . It is a single dash script to manage plain text notes in a folder using neovim . Put this script in a folder that you want your plain text notes to reside, cd into the folder and run the script. #!/bin/dash # check if it is run as ROOT and exit. ROOID=$( id -u) if [ $((ROOID)) -eq 0 ]; then exit 0 fi # check if it is running in terminal. otherwise exit. case " $(ps -o stat= -p $$) " in *+*) clear; echo "\ndamshote continue..." ;; *) notify-send -t 2700 "clean exit" "please run it in terminal." ;; esac # check it is already running and exit. SCRIPTNAME= " $(basename -- " $0 " ) " if pidof -x " $SCRIPTNAME " -o $$ > /dev/null 2>&1; then echo "Oop! it is already running. clean exit" exit 0 fi HEREDIR= " $(dirname " $(readlink -f " $0 " ) " ) " NOTEDIR= "" $HEREDIR...