#history #shell-history #shell #arrange

app compress_history

删除不必要的历史记录

6 个版本

0.2.0 2021 年 8 月 4 日
0.1.4 2020 年 1 月 3 日

#17#shell-history

AGPL-3.0-or-later

9KB
182

compress_history

Crate pipeline status

示例

$ 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

用法

$ compress_history --help
Toru3 <[email protected]>
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]

许可证

AGPL-3.0-or-later

依赖关系

~4–13MB
~126K SLoC