Command to automatically clone repository by it's name
- Clone this repository
- Add path to cloned directory to your PATH.
- Unix - Edit either
/etc/environment
or~/.bash_profile
. - Windows - Follow this tutorial
- Unix - Edit either
- Add
PROJECTS_PATH
environment variable. It should lead to directory, that contains all your projects (eg./var/www
orC:\xampp\htdocs
)- Unix - Edit
~/.bash_profile
file, addexport PROJECTS_PATH=<your path>
- Windows - Press
Win+Pause/Break
, then selectAdvanced system settings
,Advanced
tab andEnvironment variables
button at the bottom. Add new user environment variable PROJECTS_PATH. You can use browse function to make it easier.
- Unix - Edit
ant-clone <repository>
This will clone stated repository (if found) and then automatically open it in PhpStorm