Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 15 days 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 (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-12T01:08:04.000Z (about 1 year ago)
- Last Synced: 2024-10-15T18:22:16.070Z (23 days ago)
- Topics: zsh, zsh-history, zsh-history-fix
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 5
- 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
```
$ zshistParsed 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!