by EivindArvesen

EivindArvesen / prm

A minimal project manager for the terminal.

424 Stars 20 Forks Last release: Not found BSD 3-Clause "New" or "Revised" License 183 Commits 3 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


TravisCI Status License Gitter

A minimal project manager for the terminal.


This script must be sourced, not run in a subshell. See usage for more information.

At present, prm supports

, as well as
. For more information, see the Wiki page on Zsh support.

Ostensibly, prm also works under Cygwin. If your

is set to a program external to Cygwin (ex: Sublime Text), you might want to add
export prm_use_cygpath=true
to your
to send the native Windows path to the editor.


is not supported, because of syntax incompatibilities. See this issue for some details. However, Fred Deschenes has made a port for
that you could check out.

Additionally, Michael Krieger has integrated prm into a workflow for Alfred (OS X).


This program basically lets you CRUD projects. Upon activation, each projects runs its associated start-script; on deactivation, it runs the project stop-script.

These bash-scripts can be used for things like changing directories, setting environment variables, cleanup, etc.

There is basic prompt integration in the form of

, which can be seen in the animated .gif demo above.

You can have several projects active at once in different shells, as prm associates active instances with the shell PID. Currently active projects can be listed (as described in usage).

Dead project instances (i.e. project instances that are still active on shell exit) will be automatically deactivated the next time you run prm – without running their stop-scripts.

For the motivation behind prm, please see the Wiki page on Problem Statements and Design Goals.


Adding and editing projects will open the associated start- and stop-scripts in your editor (as defined by the

environment variable).

A project start-script might for instance look something like this:

# cd to project directory
cd $HOME/src/Python/hello-world

activate conda env

source activate hello-world

show current git status

git status

The same project's stop-script might look like this:

# deactivate conda env
source deactivate hello-world

clean up

rm *.log *.tmp

When you activate a new project, prm automatically stops any active project in the current shell.

When a project is deactivated, prm changes the working directory back to the path you were originally on before starting your first project.


If you often create projects similar to one you already have, you can load custom scripts from your projects'
. For instance, if you'd like some python-based projects to list the number of outdated packages in their conda envs, you can save
# count outdated packages in conda env
echo "$((($(conda search --outdated --names-only | wc -l)-1))) outdated packages in env"

as e.g.
(this environment variable is detailed in usage). You can then load this script in your start- and stop-scripts like so:
prm_load conda-list-outdated

Additionally, if you need the name of the currently active project, this is available via the

environment variable.

The prm command line arguments are available in start- and stop-scripts,

being the first argument after your project name.

All available environment variables are described on this Wiki page.


To install prm:

git clone
, or download and extract a release .zip.

In order to work properly, prm must be sourced, not run in a subshell. The easiest way to do this is probably to add an alias to prm in your

(or wherever you keep your aliases), like so:
alias prm=". path/to/"

The technical reason for this is succinctly explained in this Wikipedia article.

You must set your

env-var, e.g.
export EDITOR=nano

in your rc-file (like



From the help option screen:

usage: prm  [] ...

Options: active List active project instances. add Add project(s). copy Copy project. edit Edit project(s). list List all projects. remove Remove project(s). rename Rename project. start Start project. stop Stop active project. -h --help Display this information. -v --version Display version info.

You can set the prm data directory with the

environment variable. By default all prm data is written to

Shell completions

You can install shell completions by running

bash completions/
from the project root. Only
is supported for now, but
completions are under development.


Feedback is strongly encouraged. If you run into a bug or would like to see a new feature, please open a new issue. In the case of bugs, please mention what shell they occur under (i.e.


Contributions in the form of code (e.g. implementing new features, bug-fixes) are also appreciated. For information about this, see the Wiki page on Contributing.

Pull requests that do not pass the CI tests will not be merged.


The project tests can be found in the


If you have Bats installed, you can run all tests (for both

) locally by issuing
bash tests/
in the root project folder of prm.

Unit tests can be found in


End-to-end tests can be found in


You can run both by via

make test


This software is released under the terms of the 3-clause New BSD License. See the license file for details.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.