https://github.com/zthxxx/zsh-history-enquirer
plugin for zsh history search, enhance interaction
https://github.com/zthxxx/zsh-history-enquirer
enhance-history enhance-history-search history-plugin history-search zsh-history zsh-history-enquirer zsh-history-search zsh-plugin zsh-search
Last synced: 5 months ago
JSON representation
plugin for zsh history search, enhance interaction
- Host: GitHub
- URL: https://github.com/zthxxx/zsh-history-enquirer
- Owner: zthxxx
- License: mit
- Created: 2019-09-18T13:08:47.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-30T12:58:28.000Z (about 1 year ago)
- Last Synced: 2025-03-28T19:12:34.180Z (8 months ago)
- Topics: enhance-history, enhance-history-search, history-plugin, history-search, zsh-history, zsh-history-enquirer, zsh-history-search, zsh-plugin, zsh-search
- Language: TypeScript
- Homepage: https://zsh-history-enquirer.zthxxx.me
- Size: 1.71 MB
- Stars: 89
- Watchers: 5
- Forks: 6
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - history-enquirer - Enhances history search with more interaction and a multiline selection menu. Requires Node.js. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - history-enquirer - Enhances history search with more interaction and a multiline selection menu. Requires Node.js. (Plugins / ZSH on Windows)
- awesome-zsh-plugins - history-enquirer - Enhances history search with more interaction and a multiline selection menu. Requires nodejs. (Plugins / Zinit (née zplugin))
README
zsh-history-enquirer
## What's this
A plugin that **enhances zsh history search interaction**, with review and choose in a multiline menu
## Preview
### screenshot
Ctrl + R
### live demo
## Install
### antigen
```bash
antigen bundle zthxxx/zsh-history-enquirer
```
### oh-my-zsh
If you are using [`oh-my-zsh`](https://github.com/robbyrussell/oh-my-zsh), **all you need to do is one npm command.**
```bash
npm i -g zsh-history-enquirer
```
The install/uninstall hooks will be correctly setup in your `oh-my-zsh` plugins and config. Manually editing `.zshrc` is **no longer necessary**
### one-line command
You can use a one-line command (which will auto install node via nvm, if node command not found)
```bash
curl -#sSL https://github.com/zthxxx/zsh-history-enquirer/raw/master/scripts/installer.zsh | zsh
```
### [Homebrew](https://brew.sh)
```bash
brew install zsh-history-enquirer
```
```bash
# .zshrc
autoload -U history_enquire
history_enquire
```
### manually without oh-my-zsh
If you don't use `oh-my-zsh`, you can manually add the `source` plugin file to your `.zshrc` after npm is installed and manually remove the `source` command when it is uninstalled.
```bash
echo 'source `npm root -g`/zsh-history-enquirer/zsh-history-enquirer.plugin.zsh' >> ~/.zshrc
```
## Usage
This plugin will replace the default ZSH history search with the `^R` shortcut.
Just press ^R (Ctrl + R) to enjoy enhanced history search!
## License
[MIT LICENSE](./LICENSE)
## Author
**zsh-history-enquirer** © [zthxxx](https://github.com/zthxxx), Released under the **[MIT](./LICENSE)** License.
> Blog [@zthxxx](https://blog.zthxxx.me) · GitHub [@zthxxx](https://github.com/zthxxx)