{"id":26099273,"url":"https://github.com/sirkon/portalctl","last_synced_at":"2026-04-28T13:39:06.098Z","repository":{"id":281378440,"uuid":"945097226","full_name":"sirkon/portalctl","owner":"sirkon","description":"portalctl and portal make diving into \"deep\" directories easy!","archived":false,"fork":false,"pushed_at":"2025-07-24T07:46:02.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-24T11:33:48.345Z","etag":null,"topics":["qol","quality-of-life","shell","shell-users"],"latest_commit_sha":null,"homepage":"","language":"Go","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/sirkon.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,"zenodo":null}},"created_at":"2025-03-08T16:48:52.000Z","updated_at":"2025-07-24T07:46:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b5fa72b-c843-4107-8835-7b0689ed0442","html_url":"https://github.com/sirkon/portalctl","commit_stats":null,"previous_names":["sirkon/portalctl"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/sirkon/portalctl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sirkon%2Fportalctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sirkon%2Fportalctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sirkon%2Fportalctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sirkon%2Fportalctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sirkon","download_url":"https://codeload.github.com/sirkon/portalctl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sirkon%2Fportalctl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32383782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["qol","quality-of-life","shell","shell-users"],"created_at":"2025-03-09T16:35:39.946Z","updated_at":"2026-04-28T13:39:06.093Z","avatar_url":"https://github.com/sirkon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# portalctl\n\n`portalctl` and `portal` make diving into \"deep\" directories easy!\n\n# Installation\n\n```shell\ngo install github.com/sirkon/portalctl@latest # Install portalctl.\nportalctl setup                               # Adds portal to your shell and do some other stuff.\n```\n\n# What it is and how to use.\n\nImagine we have a project with deep hierachy of folders. You may do something like \n`cd project/internal/libray/internal/sublibrary/…/destination` one time, two times, but it quickly becomes\nbothersome once you need to do this again and again and again. Meh.\n\n`portalctl` and `portal` are means to do this pretty easy. The usage scenario with them is:\n\n- Once in a directory you run\n  ```shell\n  portalctl here \u003cdest\u003e \n  ```\n  Where `\u003cdest\u003e` is some identifier.\n- When you need to cd in that folder again you just\n  ```shell\n  portal \u003cdest\u003e\n  ```\nAnd your `bash` or `zsh` will move you there.\n\n# More on the `portalctl`.\n\nYou can do some management with it:\n\n| command           | info                                                                                                                                                                         |\n|-------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `here \u003cname\u003e`     | Adds current directory under the given name - a new portal.                                                                                                                  |\n| `delete \u003cname\u003e`   | Removes both name and path once registered with `here` under the given name.                                                                                                 |\n| `show \u003cname\u003e`     | Prints a path once registered under the given name.                                                                                                                          |\n| `list`            | List all available \"portals\" with name and its path.                                                                                                                         |\n| `prefix \u003cprefix\u003e` | List all names having the given `\u003cprefix\u003e`                                                                                                                                   |\n| `log-compact`     | Removes all log entries related to removed portals.                                                                                                                          |\n| `version`         | Prints version and exits.                                                                                                                                                    |\n| `setup`           | Registers `\u003cportal\u003e` shell function. Registers shell completion for `\u003cportal\u003e`. `\u003cportal\u003e` is just `portal` by default. Can be customized, see help for the `setup` command. |\n\n# What is under the hood.\n\n`portalctl` works like a database: \n\n- once you do \"write\" type operations, it adds a new record to a log file placed in `\u003cuser cache directory\u003e/portalctl/`.\n- it reads records in the log file and do a response logic once you do \"read\" type operation. It is always \"full scan\",\n so that's why `log-compact` is provided. Albeit, the log shouldn't be that huge to really care about this: there are\n only a few directories you need to go into regularly in any reasonable scenario.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsirkon%2Fportalctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsirkon%2Fportalctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsirkon%2Fportalctl/lists"}