8000 GitHub - nivaldogmelo/project_cd
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nivaldogmelo/project_cd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0