https://github.com/bbugyi200/shv
Take control of your shell history once and for all.
https://github.com/bbugyi200/shv
Last synced: 5 months ago
JSON representation
Take control of your shell history once and for all.
- Host: GitHub
- URL: https://github.com/bbugyi200/shv
- Owner: bbugyi200
- Created: 2018-10-11T14:05:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-11T17:07:07.000Z (over 1 year ago)
- Last Synced: 2024-12-26T21:40:48.193Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 45.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
What was that `gpg` option again? I guess I'll look it up... Again... For the thousandth time. Right? Wrong!
# (S)hell (H)istory (V)iewer
`shv` is a CLI program that sorts and filters your shell history based on properties specified via command-line options. Some of these properties include: a regular expression on the command, a date range of when the command was executed, the directory that the command was executed from, and more,
### Installation
#### From Source
Run the following commands to install `shv` from source:
```
git clone https://github.com/bbugyi200/shv
cd shv
cargo build --release
cp target/release/shv shw.sh ~/.cargo/bin/
```
Then add the following line to your `.zshrc` (or `.bashrc` if you have [bash-preexec](https://github.com/rcaloras/bash-preexec) installed):
```
preexec() { shw.sh &> /dev/null "$1"; }
```