Crates.io | project_cd |
lib.rs | project_cd |
version | |
source | src |
created_at | 2025-05-07 21:55:57.32513+00 |
updated_at | 2025-05-07 21:55:57.32513+00 |
description | A CLI tool to help you switch between your projects folder |
homepage | |
repository | https://github.com/nivaldogmelo/project_cd |
max_upload_size | |
id | 1664588 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Sometimes you need to switch between project folders in your terminal too often, this project tries to make that a little easier.
To install you just need to execute
## Install package
cargo install --locked project_cd
## Install wrapper script
project_cd -i
pcd
scriptIt's a bit tricky change folder from a script in a terminal. Usually scripts create a child process to execute its commands, so when you change the folder you're only changing in the child process, that it's terminated at the end of the execution. So to allow the pcd to change the folder at the parent directory you need to add the following line into your .bashrc
or equivalent
# Pcd activate
source ~/.cargo/bin/pcd
It might vary depending on your cargo binary folder, but the project_cd -i
command will show you the exact path of the pcd
wrapper
After you're done with the installation, you just need to execute the pcd
with the desired flags use the --help
to more information about it
> pcd -a <path-to-project>
> pcd -r <project_name>
> pcd
If you feel like something is missing/broken, feel free to create an issue or submit a PR.
This project is under the MIT License
. See the LICENSE file for more details.