{"id":13563544,"url":"https://github.com/chip/pathos","last_synced_at":"2025-05-14T02:30:30.505Z","repository":{"id":50263020,"uuid":"509548307","full_name":"chip/pathos","owner":"chip","description":"pathos - CLI for editing a PATH env variable","archived":false,"fork":false,"pushed_at":"2024-02-10T02:03:59.000Z","size":14453,"stargazers_count":96,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-04T16:44:41.756Z","etag":null,"topics":["bash","bubbles","bubbletea","cli","env","environment-variables","go","golang","path","shell","unix","zsh"],"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/chip.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}},"created_at":"2022-07-01T18:07:44.000Z","updated_at":"2024-11-04T13:41:08.000Z","dependencies_parsed_at":"2024-03-16T22:58:12.944Z","dependency_job_id":"996b7602-e984-49c4-92f5-8d208047f465","html_url":"https://github.com/chip/pathos","commit_stats":{"total_commits":46,"total_committers":1,"mean_commits":46.0,"dds":0.0,"last_synced_commit":"7b08bae487c19375c3ad526a2f4b5125260a2f9f"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chip%2Fpathos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chip%2Fpathos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chip%2Fpathos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chip%2Fpathos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chip","download_url":"https://codeload.github.com/chip/pathos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225270609,"owners_count":17447635,"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":["bash","bubbles","bubbletea","cli","env","environment-variables","go","golang","path","shell","unix","zsh"],"created_at":"2024-08-01T13:01:20.430Z","updated_at":"2024-11-19T00:13:34.189Z","avatar_url":"https://github.com/chip.png","language":"Go","readme":"# pathos - CLI for editing a PATH env variable\n\n## Ruby Version\n\n[chip/pathos.rb](https://github.com/chip/pathos.rb)\n\n## Go Version\n\nThis is the Go version.\n\n## Background\n\nIf you're like me, you might have a number of `export PATH` statements\nlittering your shell resource file (e.g., `.zshrc`, `.bashrc`, etc). Over time,\nmany directory entries get added and revised. Those that remain eventually\nbecome unnecessary, are mistakenly duplicated, or represent directories that no\nlonger exist on the system. This is my attempt at cleaning up `PATH`\nenvironment variable. Hopefully, others will find this to be useful.\n\n## Demo\n\n![pathos DEMO](assets/demo.gif \"pathos DEMO\")\n\n### Built with the following:\n\n  * [Go](https://go.dev/)\n  * [Bubble Tea](https://github.com/charmbracelet/bubbletea)\n  * [Bubbles](https://github.com/charmbracelet/bubbles)\n  * [Lip Gloss](https://github.com/charmbracelet/lipgloss)\n\n## Installation\n    go install github.com/chip/pathos@latest\n\n## IMPORTANT\n\nBe sure to save your changes with `S` *(uppercase letter S)* before quitting\n`pathos`, as **changes will not be saved automatically**.\n\nEach time you save your changes to the directory list, `pathos` will build a\nrevised `export $PATH` statement that is written to `$HOME/pathos.sh`.\n\nTo use the new PATH, `~/pathos.sh` **MUST BE SOURCED** to take effect within your\nshell.\n\n    source $HOME/pathos.sh\n\n## Navigation\n\nLike any typical [Bubble Tea](https://github.com/charmbracelet/bubbletea) app,\nyou have the following keys that are available for navigation:\n\nKey | Description\n---|---\nk | Move up the list of directories\nj | Move down the list of directories\nl | Move to the next page\nh | Move to the previous page\ng/home | Move to the top of the list\nG/end | Move to the end of the list\nq | Quit pathos **(does NOT save changes)**\n? | Toggle between regular and full help\n\n## Commands\n\nKey | Description\n---|---\nN | Add a new directory to the list at the current cursor position\nD | Delete a directory at the current cursor position\nS | Save all changes made to the list of directories\n\n## Color Highlighting\n\nColor | Description\n---|---\n\u003cspan style=\"background-color:black\"\u003e \u0026nbsp; \u003cspan style=\"color:yellow\"\u003eYellow\u003c/span\u003e \u0026nbsp; \u003c/span\u003e | Shows current cursor position\u003c/span\u003e\n\u003cspan style=\"background-color:black\"\u003e \u0026nbsp; \u003cspan style=\"color:red\"\u003eRed\u003c/span\u003e \u0026nbsp; \u003c/span\u003e | Indicates directories that **do not exist**\n\u003cspan style=\"background-color:black\"\u003e \u0026nbsp; \u003cspan style=\"color:aqua\"\u003eAqua\u003c/span\u003e \u0026nbsp; \u003c/span\u003e | Indicates duplicate directories\n","funding_links":[],"categories":["Go","Applications"],"sub_categories":["Development Tools"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchip%2Fpathos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchip%2Fpathos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchip%2Fpathos/lists"}