{"id":20197197,"url":"https://github.com/mohamedelashri/ndpath","last_synced_at":"2025-03-03T08:22:47.878Z","repository":{"id":231159334,"uuid":"781082633","full_name":"MohamedElashri/ndpath","owner":"MohamedElashri","description":"A command-line tool for managing and editing the PATH environment variables","archived":false,"fork":false,"pushed_at":"2024-04-03T06:47:43.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T00:03:19.344Z","etag":null,"topics":["environment-variables","pathos"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/ndpath/","language":"Python","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/MohamedElashri.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":"2024-04-02T18:02:28.000Z","updated_at":"2024-04-02T20:38:48.000Z","dependencies_parsed_at":"2024-04-02T19:31:09.937Z","dependency_job_id":"5455e465-f6cf-46f4-bd69-fd09b75cb64a","html_url":"https://github.com/MohamedElashri/ndpath","commit_stats":null,"previous_names":["mohamedelashri/ndpath"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedElashri%2Fndpath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedElashri%2Fndpath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedElashri%2Fndpath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohamedElashri%2Fndpath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MohamedElashri","download_url":"https://codeload.github.com/MohamedElashri/ndpath/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241630731,"owners_count":19993875,"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":["environment-variables","pathos"],"created_at":"2024-11-14T04:27:45.315Z","updated_at":"2025-03-03T08:22:47.860Z","avatar_url":"https://github.com/MohamedElashri.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Python Tests](https://github.com/MohamedElashri/ndpath/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/MohamedElashri/ndpath/actions/workflows/tests.yml)\n\n# ndpath\n\nndpath is a command-line tool for managing and editing the `PATH` environment variables. It provides an interactive interface to view, add, remove, and reorder directories in your PATH.\n\n## Introduction\n\nndpath is a Python port of the [pathos](https://github.com/chip/pathos) tool, which is written in Go. As the maintainer of ndpath, my motivation for creating this port is that I don't have sufficient knowledge of Go to contribute to the upstream development of pathos. Therefore, ndpath is intended to be a hard fork rather than a soft fork, allowing for independent development and maintenance.\n\n## Installation\n\nTo install ndpath, you need to have Python installed on your system. You can install ndpath using pip:\n\n```bash\npip install ndpath\n```\n\n## Usage\n\nTo use ndpath, simply run the following command in your terminal:\n\n\n```\nndpath\n```\n\nThis will launch the interactive interface of ndpath that will allow you to view, add, remove, and reorder paths in your `PATH`. You should also source the `.pathos.env` file in your shell configuration file (e.g., `.bashrc`, `.zshrc`, etc.) to load the modified `PATH` into your shell environment.\n\n```bash\nsource ~/.pathos.env\n```\n\n## Features\n\nndpath provides the following features:\n\n- View the current list of directories in your `PATH`\n- Add new directories to your `PATH`\n- Remove directories from your `PATH`\n- Reorder directories in your `PATH`\n- Save changes to your `PATH` permanently\n\n## Keyboard Shortcuts\n\nndpath supports the following keyboard shortcuts:\n\n- `q` - Quit the program (you will be prompted to save changes)\n- `k` or `↑` - Move the selection cursor up\n- `j` or `↓` - Move the selection cursor down\n- `o` - Insert a new directory below the selected directory\n- `O` - Insert a new directory above the selected directory\n- `x` - Delete the selected directory\n- `X` - Delete all non-existent directories from your `PATH`\n- `D` - Deduplicate the list of directories in your `PATH`\n- `S` - Manually save changes to your `PATH`\n\n## Configuration\n\nndpath stores the modified `PATH` in a file named `.ndpath.env` in your home directory.\n This file is loaded by ndpath on startup and is updated whenever you save changes to your PATH.\n\n## Contributing\n\nContributions to ndpath are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.\n\n## License\n\nndpath is released under the MIT License. See the [LICENSE](LICENSE) file for more information.\n\n## Acknowledgements\n\nndpath is inspired by and based on the [pathos](https://github.com/chip/pathos) tool. Special thanks to the creators and contributors of pathos for their work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedelashri%2Fndpath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohamedelashri%2Fndpath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamedelashri%2Fndpath/lists"}