Crates.io | rags |
lib.rs | rags |
version | 0.1.0 |
source | src |
created_at | 2019-08-15 14:22:00.868788 |
updated_at | 2019-08-15 14:22:00.868788 |
description | rags is a tool for analyzing shell history files and suggesting commands to alias |
homepage | |
repository | https://github.com/mxheller/rags |
max_upload_size | |
id | 157094 |
size | 27,675 |
Rags (Rust Alias Generator for Shells) is a tool for analyzing shell history files and suggesting commands to alias.
> rags suggest $HISTFILE
+------+--------------------+------------------------------+
| Uses | Last Used | Command |
+------+--------------------+------------------------------+
| 33 | 2019-05-25 10:20AM | rg --files --hidden |
+------+--------------------+------------------------------+
| 36 | 2019-05-25 10:20AM | rg --files |
+------+--------------------+------------------------------+
| 34 | 2019-01-29 07:14AM | git remote |
+------+--------------------+------------------------------+
| 23 | 2019-05-25 10:20AM | rg --files --hidden --follow |
+------+--------------------+------------------------------+
| 22 | 2019-01-29 07:14AM | git remote add |
+------+--------------------+------------------------------+
After installing rust, you can install rags
with:
cargo install rags
Note the installation path cargo
outputs at the end, e.g. /home/max/.cargo/bin/rags
, and make sure that the containing folder (/home/max/.cargo/bin
in this case) is in your PATH
.
USAGE:
rags <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
help Prints this message or the help of the given subcommand(s)
suggest Generates a table of suggested commands to alias
USAGE:
rags suggest <histfile> [n]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
ARGS:
<histfile> Path to history file
<n> Number of aliases to suggest [default: 5]