1
0
Fork 0

Add powershell instructions, fixes #8883

pull/8944/head
Jordi Boggiano 2020-06-03 09:57:32 +02:00
parent f7abfc9d7f
commit 93502eed68
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 11 additions and 3 deletions

View File

@ -134,10 +134,18 @@ to download `composer.phar`.
Create a new `composer.bat` file alongside `composer.phar`: Create a new `composer.bat` file alongside `composer.phar`:
Using cmd.exe:
```sh ```sh
C:\bin> echo @php "%~dp0composer.phar" %*>composer.bat C:\bin> echo @php "%~dp0composer.phar" %*>composer.bat
``` ```
Using PowerShell:
```sh
PS C:\bin> Set-Content composer.bat '@php "%~dp0composer.phar" %*'
```
Add the directory to your PATH environment variable if it isn't already. Add the directory to your PATH environment variable if it isn't already.
For information on changing your PATH variable, please see For information on changing your PATH variable, please see
[this article](https://www.computerhope.com/issues/ch000549.htm) and/or [this article](https://www.computerhope.com/issues/ch000549.htm) and/or