RESH CLI searches your history by commands. It uses host, directories, git remote, and exit status to show you relevant results first.
RESH SEARCH app searches your history by commands. It uses host, directories, git remote, and exit status to show you relevant results first.
All this context is not in the regular shell history. RESH CLI will only search shell history that was recorded after you install this project.
All this context is not in the regular shell history. RESH records shell history with context to use it when searching.
*I use RESH CLI everyday but please remember that it is still a prototype.*
At first, the search application will look something like this. Some history with context and most of it without. As you can see, you can still search the history just fine.
RESH SEARCH app replaces the standard reverse search - launch it using Ctrl+R.
Enable/disable for FUTURE shell sessions:
Enable/disable the Ctrl+R keybinding:
```sh
reshctl enable ctrl_r_binding_global
reshctl disable ctrl_r_binding_global
reshctl enable ctrl_r_binding
reshctl disable ctrl_r_binding
```
Run the RESH CLI tool as a one-off:
You can also run the RESH SEARCH app directly as a one-off:
```sh
resh
```
NOTE: One feature is not available when running RESH SEARCH app directly - arrow right won't paste the selected command onto the command line for editing.
### Arrow key bindings
Resh provides arrow key bindings.
These bindings do regular stepping through history and prefix search.
These bindings provide regular stepping through history and prefix search.
They also fully deduplicate the served history.
They allow resh to record bindings usage metadata.
@ -175,7 +176,7 @@ They allow resh to record bindings usage metadata.
Arrow key bindings are enabled by default in zsh and they are disabled by default in bash because there are some performance issues.
Enable/disable arrow key bindings for THIS shell session: