Rags
Rust Alias Generator for Shells
Install / Use
/learn @max-heller/RagsREADME
Rags
Rags (Rust Alias Generator for Shells) is a tool for analyzing shell history files and suggesting commands to alias.
Examples
> 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 |
+------+--------------------+------------------------------+
Installation
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
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
Generating Suggestions
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]
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
