The easy way to switch to your projects on Shell. Add your projects to pm
and switch between them with a command.
To install the program, download the installer and execute it.
cd ~
wget https://raw.githubusercontent.com/Angelmmiguel/pm/master/install.sh
chmod 755 ./install.sh
./install.sh
Type your shell when the installer ask to you:
What is your shell? [ zsh, bash ]:
To update PM, run same process than installation and say yes
when PM ask you to update.
Available shells are:
- ZSH
- Bash (Prerelease)
Move to your awesome project and add it to pm
:
cd projects/awesome-project
pm add awesome-project
Try to add another. Next, list stored projects:
pm list
# awesome-project
# another-project
To switch into a project, use pm go
:
pm go awesome-project
# Current project: awesome-project
If a project is not longer available, remove it:
pm remove another-project
pm list
# awesome-project
PM allow some config values. To add, edit or remove a config parameter:
pm config <add|get|remove> <parameter> (value)
Available config parameters:
after-all
: execute this command after switch to a project withpm go
.git-info
: show a resume of Git whengo
to a project.
For example, you can open Sublime Text on a project when go
to it:
pm config add after-all "sublime ."
With PM you can add configuration to projects. To add, edit or remove a config parameter of a project:
pm config-project <project> <add|get|remove> <parameter> (value)
Available config parameters:
after
: execute this command after switch to the project withpm go
.git-info
: show a resume of Git status.
For example, you can start Gulp in a project when go
to it:
pm config-project myproject add after "gulp"
To contribute pm
:
- Create an issue with the contribution: bug, enhancement..
- Fork the project and edit it
- Create a pull request when you finish
PM is released under the MIT license. Copyright @Laux_es ;)