2 个版本
0.1.1 | 2022年2月18日 |
---|---|
0.1.0 | 2021年12月9日 |
#13 在 #增加
16KB
485 行
dhist
保存并排序最常用的类似 dmenu 的输入
USAGE:
dhist [OPTIONS] <SUBCOMMAND>
OPTIONS:
-h, --help Print help information
SUBCOMMANDS:
help Print this message or the help of the given subcommand(s)
increment Increase usage of input by 1
query Print history
sort Sort input by history frequency
wrap Wrap a command to sort before and increment after
示例
# sort input of dmenu based on usage
printf "%s\n" hello world | dhist wrap -- dmenu
# same as above, but more verbose
# dhist increment also prints out it's input, so you can still use it for another program
printf "%s\n" hello world | dhist sort | dmenu | dhist increment
依赖项
~1.4–2MB
~30K SLoC