6 releases

0.2.0 Aug 4, 2021
0.1.4 Jan 3, 2020

#15 in #shell-history

Download history 4/week @ 2024-02-26 52/week @ 2024-04-01

52 downloads per month

AGPL-3.0-or-later

9KB
182 lines

compress_history

Crate pipeline status

Example

$ cat history 
echo "hallo"
echo "hello"
ping 192.168.0.1
ping 192.168.0.2
ping 192.168.0.3
ping 192.168.0.4
ls -l
ls -a
$ compress_history -f history 
echo "hello"
ping 192.168.0.4
ls -l
ls -a

Usage

$ compress_history --help
Toru3 <ryuutet@gmail.com>
delete unnecessary history

USAGE:
    compress_history [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -f, --file <FILE>    Target history file [default: /home/user/.bash_history]

LICENSE

AGPL-3.0-or-later

Dependencies

~3.5–5.5MB
~86K SLoC