{"id":16179554,"url":"https://github.com/stavshamir/bag","last_synced_at":"2025-10-07T12:42:32.884Z","repository":{"id":117560386,"uuid":"135985614","full_name":"stavshamir/bag","owner":"stavshamir","description":"bash alias generator","archived":false,"fork":false,"pushed_at":"2019-02-10T11:34:32.000Z","size":64,"stargazers_count":42,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T21:08:09.617Z","etag":null,"topics":["alias","aliases","aliasing","bash","java"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stavshamir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-06-04T07:15:09.000Z","updated_at":"2023-09-30T20:09:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"b97513ab-6683-46e6-a738-100a793cc9ce","html_url":"https://github.com/stavshamir/bag","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stavshamir/bag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stavshamir%2Fbag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stavshamir%2Fbag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stavshamir%2Fbag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stavshamir%2Fbag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stavshamir","download_url":"https://codeload.github.com/stavshamir/bag/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stavshamir%2Fbag/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278778958,"owners_count":26044256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"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","aliases","aliasing","bash","java"],"created_at":"2024-10-10T05:28:50.538Z","updated_at":"2025-10-07T12:42:32.836Z","avatar_url":"https://github.com/stavshamir.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bag - Bash Alias Generator\n\nThis tool suggests aliases based on non-aliased frequently used commands, and provides a painless way to apply them.\n\n\n## Build\n1. Run:\n```bash\n$ ./gradlew fatJar\n```\n2. Create a home directory for the application\n3. Into the home directory, copy the files install.sh, build/libs/bag-1.0-SNAPSHOT.jar and build/resources/main/alias.sh\n4. From the home directory, run:\n```bash\n$ source install.sh\n```\n\n## -OR- Download from [here][zip] and install:\n1. Unzip\n2. From the unzipped directory, run:\n```bash\n$ source install.sh\n```\n\n## Usage:\n```bash\nbag [-c \u003cindex\u003e [-a \u003calternative alias name\u003e]]\n -a,--alternative \u003calias name\u003e   create an alias with an alternative name\n -c,--create \u003cindex\u003e             create an alias with the suggested name\n -h,--help                       print usage\n -l,--print-all                  print a list of all suggested aliases\n -p                              print a list of suggested aliases\n ```\n*The new aliases become available after restarting the shell.*\n\n\n## Examples:\n1. Printing a list of suggested aliases\n```bash\n$ bag -p\nSUGGESTED\tCOMMAND\t\tTIMES USED\n(1) fab\t\tfoo -a -b -c\t42\n(2) bde\t\tbar -d -e -f\t5\n```\n\n2. Creating a suggested alias\n```bash\n$ bag -c 1\nNew alias was created: alias fab='foo -a -b -c'\n```\n\n3. Creating a suggested alias with an alternative name\n```bash\n$ bag -c 2 -a bam\nNew alias was created: alias bam='bar -d -e -f'\n```\n\n[zip]: https://github.com/stavshamir/stavshamir.github.io/blob/master/deployed/bag.zip?raw=true\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstavshamir%2Fbag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstavshamir%2Fbag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstavshamir%2Fbag/lists"}