https://github.com/adhocore/zshist
ZSH history manager: merge/deduplicate/normalize history entries for zsh, arrow suggestion UX is improved (plus save space, remove redundancy)
https://github.com/adhocore/zshist
zsh zsh-history zsh-history-fix
Last synced: over 1 year ago
JSON representation
ZSH history manager: merge/deduplicate/normalize history entries for zsh, arrow suggestion UX is improved (plus save space, remove redundancy)
- Host: GitHub
- URL: https://github.com/adhocore/zshist
- Owner: adhocore
- License: mit
- Created: 2023-09-11T01:34:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-12T01:08:04.000Z (almost 3 years ago)
- Last Synced: 2025-04-11T21:38:12.838Z (over 1 year ago)
- Topics: zsh, zsh-history, zsh-history-fix
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# zshist
History manager for zsh shell with no dependencies.
Merges and deduplicates history entries from
`~/.zsh_history`, `~/.zsh_history.pre-oh-my-zsh`, `~/.bash_history`
and saves back to `~/.zsh_history`.
Creates backup in `~/.zsh_history.bak` in case you want to restore.
The order of commands is maintained so latest ones are suggested first.
## why
It may save disk space and redundancy but most importantly you get a
specific completion only once as you scroll up in the `zsh` prompt.
## install
```sh
go install github.com/adhocore/zshist
```
Or, you can also download latest prebuilt binary from
[release](https://github.com/adhocore/zshist/releases/latest) for platform of your choice.
## usage
```sh
zshist
# custom home dir (no trailing `/`)
zshist -home /home/user
```
## sample output
```
$ zshist
Parsed and merged 3 files with 4072 commands
Saved into ~/.zsh_history with 770 commands
Backed up into ~/.zsh_history.bak
```
> 4072 commands down to 770, not bad!