{"id":16068494,"url":"https://github.com/mssola/g","last_synced_at":"2026-02-26T06:43:14.857Z","repository":{"id":9806752,"uuid":"11787184","full_name":"mssola/g","owner":"mssola","description":"Adding shortcuts to bash.","archived":false,"fork":false,"pushed_at":"2024-03-14T21:26:15.000Z","size":55,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T11:43:46.757Z","etag":null,"topics":["shell","shortcuts"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mssola.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.org","contributing":"CONTRIBUTING.org","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-31T09:15:11.000Z","updated_at":"2024-03-14T21:23:37.000Z","dependencies_parsed_at":"2023-01-11T20:13:19.660Z","dependency_job_id":null,"html_url":"https://github.com/mssola/g","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mssola%2Fg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mssola%2Fg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mssola%2Fg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mssola%2Fg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mssola","download_url":"https://codeload.github.com/mssola/g/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245966925,"owners_count":20701747,"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","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":["shell","shortcuts"],"created_at":"2024-10-09T06:21:20.966Z","updated_at":"2026-02-26T06:43:09.811Z","avatar_url":"https://github.com/mssola.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/mssola/g/actions?query=workflow%3ACI\" title=\"CI status for the main branch\"\u003e\u003cimg src=\"https://github.com/mssola/g/workflows/CI/badge.svg\" alt=\"Build Status for main branch\" /\u003e\u003c/a\u003e\n  \u003ca href=\"http://www.gnu.org/licenses/gpl-3.0.txt\" rel=\"nofollow\"\u003e\u003cimg alt=\"License GPL 3\" src=\"https://img.shields.io/badge/license-GPL_3-blue.svg\" style=\"max-width:100%;\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nThis repository holds a very humble and simple script that handles shortcuts of\nbash paths. For example:\n\n``` sh\n$ g awesome\n# instead of ...\n$ cd /home/user/directory/dir/awesome\n```\n\nFurthermore, this repo also brings a file that adds bash completion so the user\ncan access the desired directory as fast as possible. In order to manage\nshortcuts, this script accepts three commands:\n\n``` sh\n$ g add awesome /home/user/directory/dir/awesome\n$ g list\n# Output:\n# awesome  =\u003e /home/user/directory/dir/awesome\n$ cd /home/user/directory/anotherawesome\n$ g add anotherawesomedir\n$ g rm awesome\n$ g list\n# Output:\n# anotherawesome  =\u003e /home/user/directory/anotherawesome\n```\n\nI guess that the commands above are quite self-explanatory.\n\n## Install\n\nJust place the `g.sh` and the `gcompletion.sh` files wherever you want and then\nadd a `source` command for both of the files in the `.bashrc` file.\n\n## Contributing\n\nRead the [CONTRIBUTING.org](./CONTRIBUTING.org) file.\n\n## [Changelog](https://pbs.twimg.com/media/DJDYCcLXcAA_eIo?format=jpg\u0026name=small)\n\nRead the [CHANGELOG.org](./CHANGELOG.org) file.\n\n## License\n\n```txt\nCopyright (C) 2013-Ω Miquel Sabaté Solà \u003cmikisabate@gmail.com\u003e\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmssola%2Fg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmssola%2Fg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmssola%2Fg/lists"}