From 359211f0bcb4fe2c854954df95338e7a6b3c6b62 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tiago=20Fran=C3=A7a?=
<75444821+tiago-pontomais@users.noreply.github.com>
Date: Thu, 16 Jun 2022 18:01:42 -0300
Subject: [PATCH] Added tutorial to change history editor
Add tutorial to change history editor to README.md file
---
README.md | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/README.md b/README.md
index ccce7e14..6235a845 100644
--- a/README.md
+++ b/README.md
@@ -23,6 +23,8 @@ HSTR can also **manage** your command history (for instance you can remove
commands that are obsolete or contain a piece of sensitive information)
or **bookmark** your favorite commands.
+[Change history editor](#change-history-editor)
+
@@ -82,6 +84,30 @@ hstr --show-configuration >> ~/.zshrc
For detailed HSTR configuration documentation please refer to [Configuration](CONFIGURATION.md).
+## Change history editor
+
+> _To update a history, use the left key ⇐ in a history line._
+>
+> _This tutorial is useful if you want to change the default editor._
+
+For **zsh** edit `~/.zshrc`
+
+For **bash** edit `~/.bashrc`
+
+```bash
+# Nano editor
+export FCEDIT=nano
+
+# Vi editor
+export FCEDIT=vi
+
+# VSCode Editor
+export FCEDIT='code -w'
+```
+
+_For detailed about `fc` command, please refer to [here](https://shapeshed.com/unix-fc/)_
+
+
## In the News
Read about HSTR in [LinuxMagazine](http://www.linux-magazine.com/Issues/2014/164/Bash-History-on-Steroids), [UbuntuGeek](http://www.ubuntugeek.com/tag/hstr-bash-history), [DebianAdmin](http://www.debianadmin.com/hstr-easily-view-navigate-search-and-use-your-command-history-with-shell-history.html), [Tuxdiary](http://tuxdiary.com/2015/02/17/hstr/), [Softpedia](http://linux.softpedia.com/get/Terminals/BASH-Command-History-Completion-103155.shtml) and [OSTechNix](https://www.ostechnix.com/hstr-easily-view-navigate-search-manage-commandline-history/).