Crates.io | lazyme |
lib.rs | lazyme |
version | 0.0.3 |
source | src |
created_at | 2024-01-15 09:38:10.679874 |
updated_at | 2024-01-15 09:44:23.873468 |
description | Display your most used shell commands count |
homepage | |
repository | https://github.com/pawurb/lazyme-rust |
max_upload_size | |
id | 1100191 |
size | 17,973 |
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.
cargo install lazyme
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'