Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avil13/project-list-cli
The way of moving through different projects
https://github.com/avil13/project-list-cli
Last synced: 11 days ago
JSON representation
The way of moving through different projects
- Host: GitHub
- URL: https://github.com/avil13/project-list-cli
- Owner: avil13
- Created: 2021-03-16T23:21:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-01T17:40:54.000Z (2 months ago)
- Last Synced: 2024-10-11T17:18:17.208Z (about 1 month ago)
- Language: TypeScript
- Size: 935 KB
- Stars: 14
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# project-list-cli
A way to easily navigate to projects in the terminal.
Quickly switch to the right project.
![project-list-cli demo](https://raw.githubusercontent.com/avil13/project-list-cli/master/assets/project-list-demo.gif)
## Installation:
```sh
npm install -g project-list-cli
``````sh
# Add function in .bashrc OR .zshrcpp() {
project-list $1
if [[ -z $1 || "$1" == "ls" ]]; then
DIR_TO_GO=$(node -p -e "require('$HOME/.project-list.json').lastProjectPath")
if [ ! -z "$DIR_TO_GO" ];then
cd $DIR_TO_GO
fi
fi
}```
A configuration file will be created automatically in your home directory `~/.project-list.json`
## Commands:
command | description
|:---|:---|
ls | show a list of projects
add | add a project to the list, while in the project folder
rm | remove project from list, while in the project folder
help | show help