diff --git a/readme.md b/readme.md index 444acd4..07ce22f 100644 --- a/readme.md +++ b/readme.md @@ -16,20 +16,8 @@ tree ~/.local/share/histd ``` ## Usage -Make sure the `EDITOR` environment variable is set -to the name of your favorite text editor. -If it's not, edit the `~/.bashrc` file (or `~/.zshrc`) -```bash -export EDITOR=nano -``` - -Don't forget to start a new session or execute the following command: -```bash -source ~/.bashrc -``` - -Then mark this script as executable: +Mark this script as executable: ```bash chmod +x histd.sh ``` @@ -46,6 +34,21 @@ You can open the last note with the command: ./histd.sh last ``` +## Editor configuration + +When opening a text editor, the program checks the value of the `EDITOR` environment variable. + +If you want to use a different editor, edit the `~/.bashrc` file (if you are using bash): +```bash +export EDITOR=nano +``` + +Don't forget to start a new session or execute the following command: +```bash +source ~/.bashrc +``` + + ## Backup To create an archive of all notes, run the following command: ```bash