This project has been archived by its maintainers, and is no longer receiving any updates.
ndpath
ndpath 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.
Introduction
ndpath is a Python port of the 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.
Installation
To install ndpath, you need to have Python installed on your system. You can install ndpath using pip:
pip install ndpath
Usage
To use ndpath, simply run the following command in your terminal:
ndpath
This 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.
source ~/.pathos.env
Features
ndpath provides the following features:
- View the current list of directories in your
PATH - Add new directories to your
PATH - Remove directories from your PATH
- Reorder directories in your PATH
- Save changes to your PATH permanently
Keyboard Shortcuts
ndpath supports the following keyboard shortcuts:
q- Quit the program (you will be prompted to save changes)kor↑- Move the selection cursor upjor↓- Move the selection cursor downo- Insert a new directory below the selected directoryO- Insert a new directory above the selected directoryx- Delete the selected directoryX- Delete all non-existent directories from your PATHD- Deduplicate the list of directories in your PATHS- Manually save changes to your PATH
Configuration
ndpath stores the modified PATH in a file named .ndpath.env in your home directory.
This file is loaded by ndpath on startup and is updated whenever you save changes to your PATH.
Contributing
Contributions 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.
License
ndpath is released under the MIT License. See the LICENSE file for more information.
Acknowledgements
ndpath is inspired by and based on the pathos tool. Special thanks to the creators and contributors of pathos for their work.
Metadata
Release files for ndpath 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ndpath-0.0.1.tar.gz | 6.1 kB | Without provenance | Details for ndpath-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ndpath-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for ndpath-0.0.1-py3-none-any.whl |
Total release size: 11.5 kB
Release files / ndpath-0.0.1.tar.gz
| Download URL | ndpath-0.0.1.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb82cbce9c11acd296ce72230b91694edc7599facdecef742e813017835c6943
|
|
BLAKE2b-256 checksum How to use checksums |
5733a7b78bb2ced82facad17f41e08d56caa18d38fdaf44db828defa9a5132ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.14
|
Release files / ndpath-0.0.1-py3-none-any.whl
| Download URL | ndpath-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a5c4b03159b3cbbe724e98edc410f89ea2a1d26f6ee2af90d2b3e3d2c5259be
|
|
BLAKE2b-256 checksum How to use checksums |
4a8fe3195330c765a14ed92eaf389caa71a9911b8f559eae5df9de285cabf893
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.14
|
Security for ndpath 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.