{"id":17925385,"url":"https://github.com/shogunpurple/retreat","last_synced_at":"2026-05-16T13:08:50.514Z","repository":{"id":102861765,"uuid":"241341039","full_name":"shogunpurple/retreat","owner":"shogunpurple","description":"Retreat to a specified parent directory","archived":false,"fork":false,"pushed_at":"2020-02-23T01:09:28.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-04T16:18:57.168Z","etag":null,"topics":["bash","bash-script","unix"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/shogunpurple.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":"2020-02-18T11:11:52.000Z","updated_at":"2020-02-23T01:09:30.000Z","dependencies_parsed_at":"2023-06-15T13:15:10.723Z","dependency_job_id":null,"html_url":"https://github.com/shogunpurple/retreat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shogunpurple/retreat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shogunpurple%2Fretreat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shogunpurple%2Fretreat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shogunpurple%2Fretreat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shogunpurple%2Fretreat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shogunpurple","download_url":"https://codeload.github.com/shogunpurple/retreat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shogunpurple%2Fretreat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33104012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"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":["bash","bash-script","unix"],"created_at":"2024-10-28T20:53:42.700Z","updated_at":"2026-05-16T13:08:50.497Z","avatar_url":"https://github.com/shogunpurple.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Retreat\n\n**retreat** is a small CLI utility that allows you to move **up** the directory tree to a specified directory.\n\n\n\n### Rationale\n\nI always found myself deep in directory structures, especially when working with JavaScript. (node_modules etc). I couldn't find a good way to move back up to a specified directory without `cd ../../../` or similar. So `retreat` was born.\n\n\n\n### Installation\n\n`retreat` is installed by running the following command in your terminal. You can install `retreat` via the command-line with `curl`.\n\n#### via curl\n\n```\nsh -c \"$(curl -fsSL https://raw.githubusercontent.com/shogunpurple/retreat/master/install.sh)\"\n```\n\n\n### Usage\n\n```bash\n$ pwd\ncool_directory/some/nested/directory/where/i/want/to/escape\n\n$ retreat cool_directory\n\n$ pwd\ncool_directory\n\n# You can go back to where you were\n$ cd -\ncool_directory/some/nested/directory/where/i/want/to/escape\n```\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshogunpurple%2Fretreat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshogunpurple%2Fretreat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshogunpurple%2Fretreat/lists"}