{"id":15050946,"url":"https://github.com/manuwarfare/abbtr","last_synced_at":"2026-03-11T05:02:14.984Z","repository":{"id":252823396,"uuid":"841538442","full_name":"manuwarfare/abbtr","owner":"manuwarfare","description":"abbtr is a cli app  (alternative to alias function) to abbreviate long commands in the terminal","archived":false,"fork":false,"pushed_at":"2024-08-29T19:13:17.000Z","size":72,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-12T14:56:18.429Z","etag":null,"topics":["alias","cli","cli-app","command","debian","golang","linux","prompt","shell","terminal"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manuwarfare.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-12T15:52:19.000Z","updated_at":"2024-09-15T01:50:17.000Z","dependencies_parsed_at":"2025-02-16T10:32:38.036Z","dependency_job_id":"16f4cf5c-9667-40e7-b80f-9c3b91569941","html_url":"https://github.com/manuwarfare/abbtr","commit_stats":null,"previous_names":["manuwarfare/abbtr"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/manuwarfare/abbtr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuwarfare%2Fabbtr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuwarfare%2Fabbtr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuwarfare%2Fabbtr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuwarfare%2Fabbtr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manuwarfare","download_url":"https://codeload.github.com/manuwarfare/abbtr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuwarfare%2Fabbtr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30372126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alias","cli","cli-app","command","debian","golang","linux","prompt","shell","terminal"],"created_at":"2024-09-24T21:29:49.623Z","updated_at":"2026-03-11T05:02:14.969Z","avatar_url":"https://github.com/manuwarfare.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# abbtr\nabbtr comes as an option to the default \"alias\" command and it's a simple program to abbreviate long prompts in GNU/Linux terminal.\nYou can easily set rules, delete them, list them and update them with a clear list of parameters. It should be functional in any GNU/Linux distribution.\n\n⭐ **FEATURES**\n\n* Simplify your long commands in terminal\n\n* Improve your times at making repetitive tasks\n\n* You don't need to open any config file\n\n* Store, list, update and delete rules\n\n* Run your rules in bulk, i.e. `abbtr \u003crule1\u003e \u003crule2\u003e`\n\n* Import rules from a local file\n\n* Backup your rules to a local file\n\n* Feeding bottles (adding variables inside a command)\n\n\n:white_check_mark: **PROGRAMMING LANGUAGE**\n\nabbtr is completly writen in Golang.\n\n\n:ballot_box_with_check: **COMPILE YOURSELF**\n\nIf you preffer to compile yourself the source code run the following commands:\n\n`git clone https://github.com/manuwarfare/abbtr.git`\n\n`cd abbtr`\n\n`go build -o abbtr`\n\n`sudo cp abbtr /usr/bin/`\n\n**Previous requirements to compile:** golang ('gcc-go', 'golang-bin')\n\nTo install Golang in your system run\n\n  `sudo dnf install golang` or `sudo apt install golang` depending on your GNU/Linux distribution.\n\n\n:question: **HOW IT FUNCTIONS?**\n\nWhen you create a new rule it is saved as a bash script in ~/.local/bin and is executed every time you invoke it by its name.\n\n:file_folder: **AFFECTED LOCATIONS**\n\n **~/.config/abbtr:** this directory is used to store the config file \"abbtr.conf\".\n\n **~/.local/share/abbtr:** this directory is used to store the registry log \"abbtr.log\".\n\n **~/.local/bin:** this directory is used to store the rule-scripts.\n\n:pencil: **CREATING RULES**\n\nFirst step after install the program is run `abbtr -h` to know about how the script functions. Some examples to create rules in a Fedora system terminal:\n\n  `abbtr -n update \"sudo dnf update -y \u0026\u0026 sudo dnf upgrade -y\"` this long command will run after with only type `update`.\n\n  `abbtr -n ssh \"ssh user@example.com\"` will connect to your SSH server only typing `ssh`\n\n  Running a block of rules is as easy as run `abbtr \u003cname1\u003e \u003cname2\u003e`. This command will run two rules continuously but you can set as many as your implementation let.\n\n:pencil: **IMPORTING RULES**\n\n  `abbtr -i \u003cfile path\u003e` will import rules from a local file.\n\n  The path must to point to a file extension, i.e: .txt, .md, .html, etc.\n\n  The stored rules must follow this syntax: `b:\u003crule\u003e = \u003ccommand\u003e:b`\n\n:pencil: **EXPORTING RULES**\n\n  `abbtr -e` will start the backup assistant.\n\n:pencil: **LISTING RULES**\n\nThere are two options to list the rules stored in abbtr.conf file.\n\n  `abbtr -l` will list all the rules stored in abbtr.conf file.\n\n  `abbtr -ln \u003cname\u003e` will list an specific rule.\n\n:pencil: **REMOVING RULES**\n\n  `abbtr -r \u003cname\u003e` will remove an specific rule.\n\n  `abbtr -r a` will remove all rules stored in abbtr.conf.\n\n:pencil: **FEEDING BOTTLES**\n\n  The feeding bottles help you adding a variable inside a command. Use only one bottle for command.\n\n  The feeding bottle syntax is this `b%('bottle_name')%b` and you can add it into any part of the command.\n\n  Usage examples: `abbtr -n ssh \"ssh -p 2222 b%('username')%b@example.com\"`\n\n  Execute the rule with: `ssh` and the system will prompt this:\n\n  _The username is?:_\n\n  If the credentials are valid, you will get connection via ssh to *example.com*.\n\n  You can also predefine the value of a bottle at any time, this value will be automatically applied to all the rules when you run them in bulk, to do this use the next argument `-b=\u003cvariable:value\u003e`.\n\n  Usage examples: `abbtr -b=username:user1 ssh`\n\n  This will run the next command: `ssh -p 2222 user1@example.com`\n\n\n# 🤖 **TESTED ON**\n\n🟢 Debian\n\n🟢 Ubuntu\n\n🟢 Linux Mint\n\n🟢 MX Linux\n\n🟢 Fedora\n\n🟢 Almalinux\n\n🟢 RockyLinux","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuwarfare%2Fabbtr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanuwarfare%2Fabbtr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuwarfare%2Fabbtr/lists"}