Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added tutorial to change history editor #454

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<!-- Check [video](http://www.youtube.com/watch?v=sPF29NyXe2U) tutorial. -->


Expand Down Expand Up @@ -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 <kbd>⇐</kbd> 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'
```

<sub>_For detailed about `fc` command, please refer to [here](https://shapeshed.com/unix-fc/)_</sub>


## 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/).

Expand Down