Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

pdm

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdm

A project directory manager.

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
2
Created
Source

pdm - a Project Directory Manager

Demo

pdm is a little tool that helps you manage all your different projects.

The initial version only supports switching between projects within project folders. Later, there will be additional features like keeping your tooling configuration in sync.

Installation

yarn global add pdm
# or
npm install -g pdm

pdm install fish # currently, bash, fish, and zsh are the only supported shells

You also need to set up your project parent folder.

pdm root add ~/projects

Usage

After that, you can switch between projects using the gp command. It supports tab completion and partial matches.

For all following examples, suppose there are the following project folders inside the parent:

abc foo bar baz
gp abc
# you are now inside the `abc` project folder
gp ghi
# Could not find a match for the project name ghi.
gp fo
# you are now inside the `foo` project folder since it's the only match
gp b
# ? The input is ambiguous, please choose the correct project you want to go to › - Use arrow-keys. Return to submit.
# ❯   projects:abc
#     projects:bar
#     projects:baz

# after selection, you are in the chosen folder

In Bash, the default namespace separator : is treated as a separator for a new token. For bash users it is recommended to set the namespace separator to another character or completion will not behave as expected.

pdm config namespace-separator /
# in Git Bash on Windows / will be transformed into the install directory so instead:
pdm config namespace-separator //

FAQs

Package last updated on 15 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts