Bag
bash alias generator
Install / Use
/learn @stavshamir/BagREADME
bag - Bash Alias Generator
This tool suggests aliases based on non-aliased frequently used commands, and provides a painless way to apply them.
Build
- Run:
$ ./gradlew fatJar
- Create a home directory for the application
- Into the home directory, copy the files install.sh, build/libs/bag-1.0-SNAPSHOT.jar and build/resources/main/alias.sh
- From the home directory, run:
$ source install.sh
-OR- Download from here and install:
- Unzip
- From the unzipped directory, run:
$ source install.sh
Usage:
bag [-c <index> [-a <alternative alias name>]]
-a,--alternative <alias name> create an alias with an alternative name
-c,--create <index> create an alias with the suggested name
-h,--help print usage
-l,--print-all print a list of all suggested aliases
-p print a list of suggested aliases
The new aliases become available after restarting the shell.
Examples:
- Printing a list of suggested aliases
$ bag -p
SUGGESTED COMMAND TIMES USED
(1) fab foo -a -b -c 42
(2) bde bar -d -e -f 5
- Creating a suggested alias
$ bag -c 1
New alias was created: alias fab='foo -a -b -c'
- Creating a suggested alias with an alternative name
$ bag -c 2 -a bam
New alias was created: alias bam='bar -d -e -f'
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> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
