project_cd

Crates.ioproject_cd
lib.rsproject_cd
version
sourcesrc
created_at2025-05-07 21:55:57.32513+00
updated_at2025-05-07 21:55:57.32513+00
descriptionA CLI tool to help you switch between your projects folder
homepage
repositoryhttps://github.com/nivaldogmelo/project_cd
max_upload_size
id1664588
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`
size0
Nivaldo Melo (nivaldogmelo)

documentation

README

Project cd

Table of Contents

Motivation

Sometimes you need to switch between project folders in your terminal too often, this project tries to make that a little easier.

Requirements

Installation

To install you just need to execute

## Install package
cargo install --locked project_cd

## Install wrapper script
project_cd -i

Source pcd script

It'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

Usage

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

Adding a new project to the list

> pcd -a <path-to-project> 

Removing a project from the list

> pcd -r <project_name>

Switching to a project

> pcd

Contributing

If you feel like something is missing/broken, feel free to create an issue or submit a PR.

License

This project is under the MIT License. See the LICENSE file for more details.

Commit count: 0

cargo fmt