diff --git a/README.md b/README.md index c7db04c..b1a5119 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A simple and easy way to keep notes via your linux terminal. # Basic Commands: ## newnote: - Write a new note using your text-editor. + Write a new note using gedit. ## quicknote: Write a note directly from terminal. ## readnote: @@ -11,17 +11,17 @@ A simple and easy way to keep notes via your linux terminal. ## quickread: Read a note directly from terminal. ## listnotes: - View a full list of notes from your default notes folder. + View a full list of notes from your notes folder. ## delnote: - Delete a note from your default notes folder. -## shellnotes(-v or --version, -r,-h or --help): + Delete a note from your notes folder. +## shellnotes(-v,-r,-h or --help): Information about shellnotes. ## findnote: -Find a specific note in your Notes folder. -## findmisplacednote: -Find a misplaced note in your system. + Find a specific note in your Notes folder. +##findmisplacednote: + Find a misplaced note in your system. ## renamenote: -Rename a note. + Rename a note. # How to download @@ -49,12 +49,10 @@ in the home directory. Find a file called `.bashrc` and open it. ## step 5: --Go to the last line of the file you opened at step 4, and write: `source ~/.shellnotes.sh` in order to be able to use shellnotes every time you launch your terminal. +-Go to the last line of the file you opened in step 4, and write: `source ~/.shellnotes.sh` in order to be able to use shellnotes every time you launch your terminal. # Warnings! -*THIS SYSTEM IS MADE FOR BASH SHELL* (Change your shell if necessary.) +*THIS SYSTEM IS MADE FOR BASH SHELL* Change your shell if necessary. -*DEFAULT EDITORS AND FOLDER MUST BE VALID* - -*DON'T CHANGE THE SCRIPT* (Only in case you don't have the default editors who are gedit and nano. In that case, you can either change them, or install the default ones.) +*DON'T CHANGE THE SCRIPT* Only in case you don't have the default editors who are gedit and nano. In that case, you can either change them (see Help Page), or install the default ones. diff --git a/shellnotes.sh b/shellnotes.sh index bc91ed3..5e4c428 100644 --- a/shellnotes.sh +++ b/shellnotes.sh @@ -32,9 +32,9 @@ else echo -n "Do you want to create one?[Y/N]: " && read create; fi - case $create in Y|Yes|YES|Yes|y ) + if [ $create == "y" ] || [ $create == "Y" ] || [ $create == "yes" ] || [ $create == "YES" ] || [ $create == "Yes" ]; then newnote - esac + fi clear cd $dir @@ -53,7 +53,7 @@ function quickread() { else clear echo "No such note." - cd $dir + cd ~ fi cd $dir } @@ -220,8 +220,8 @@ function renamenote() { else mv $notename $newnotename clear; - echo "Note renamed to $newnotename in Home/$me/Notes" - echo "----------------------------------------------" + echo "Note renamed from $notename to $newnotename in Home/$me/Notes" + echo "-------------------------------------------------------------" fi else