table of contents
ABBTR(1) | abbtr | ABBTR(1) |
NAME¶
abbtr - Abbreviator for long commands in Linux terminal
SYNOPSIS¶
abbtr [options] [usage] ...
DESCRIPTION¶
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
BUGS¶
abbtr does not have any locking mechanisms yet.
If you discover any other bugs in abbtr, please contact the author.
SEE ALSO¶
abbtr-info(1), abbtr User Manual (/usr/share/doc/abbtr/abbtr.1).
Packaging tools: debhelper(7), dh_make(8), dpkg-buildpackage(1).
AUTHORS¶
Originally written by Manuel Guerra <ar.manuelguerra@gmail.com>.
Please use the email address <ar.manuelguerra@gmail.com> for abbtr-related comments.
COPYRIGHT¶
Copyright © 2024 Manuel Guerra
License: BSD-3-Clause
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
.
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the names of the authors nor the names of the
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
August 2024 | Version 1.0.4 |