3 releases
0.0.3 | Jan 15, 2024 |
---|---|
0.0.2 | Jan 15, 2024 |
0.0.1 | Jan 15, 2024 |
#2680 in Command line utilities
7KB
80 lines
Lazyme
Lazyme is a simple tool that helps you optimise your laziness. It displays your most often used shell commands so that you can change them into aliases and eventually type less.
Installation
cargo install lazyme
Usage
lazyme =>
+---------------------------------------------+-------+
| Lazyme |
+---------------------------------------------+-------+
|... | ... |
| ei | 21 |
| gpstg | 22 |
| gstp | 23 |
| zs | 28 |
| s . | 30 |
| zrr | 32 |
| gpshh | 60 |
| rss | 70 |
| c | 75 |
| gd | 107 |
| o . | 123 |
| gst | 130 |
| ls | 179 |
| gl | 310 |
| gp | 445 |
| gds | 540 |
| gaa | 817 |
| g | 3365 |
+---------------------------------------------+-------+
| Command | Count |
+---------------------------------------------+-------+
By default it parses $HOME/.bash_history
or $HOME/.zsh_history
. Optionally you can provide a custom history file path:
lazyme ~/Users/me/.my_history
You can set aliases by adding following lines into your .bashrc
or .zshrc
files:
alias gr='grep --color'
alias gaa='git add . -A'
Dependencies
~3–10MB
~85K SLoC