rocket111185 / project-list-cli

The way of moving through different projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

project-list-cli

A way to easily navigate to projects in the terminal.

Quickly switch to the right project.

project-list-cli demo

Installation:

npm install -g project-list-cli
# Add function in .bashrc OR .zshrc

pp() {
  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

About

The way of moving through different projects


Languages

Language:TypeScript 70.1%Language:JavaScript 29.9%