abbtr1
Abbreviator for long commands in linux terminal
Usage
abbtr [options]
[usage] ...
Overview
abbtr comes as an alternative to the default "alias" command. It's a simple program designed to abbreviate long prompts in the GNU/Linux terminal. You can easily set rules, delete them, list them, and update them with a clear set of parameters. It should be functional in any GNU/Linux distribution.
Options
-
-l -
List stored rules.
-n <name> '<command>'
|
Create a new rule with the specified name and command. |
|---|---|
-i <file path>
|
Import rules from a local file. |
-
-e -
Export rules to a file.
-
-b=<variable:value> -
Predefine the value of a bottle.
-
-r <name> -
Delete an existing rule by name.
-
-r a -
Delete all rules.
- -c <name> '<command'>
-
Update the command of an existing rule specified by name.
-
-ln <name> -
Show the contents of a specific rule by name.
-
-h -
Show this help message.
-
-v -
Show the program version.
Usage examples
Create a new rule: abbtr -n update 'sudo apt update -y'
Then run: update
Syntax for feeding bottles: b%('variable')%b
User files
Config file: located at ~/.config/abbtr/abbtr.conf
Log file: located at ~/.local/share/abbtr/abbtr.log
rule scripts: located at ~/.local/bin