Merge pull request #1525 from hjoelr/fix-posh-docker-ins

Fixed bug in posh-docker setup instructions
This commit is contained in:
Victoria Bialas 2017-02-07 10:56:28 -08:00 committed by GitHub
commit 5732b5c1b5
1 changed files with 6 additions and 3 deletions

View File

@ -400,15 +400,18 @@ PowerShell Module as follows.
command to a `$PROFILE` by typing these commands at the PowerShell prompt. command to a `$PROFILE` by typing these commands at the PowerShell prompt.
```none ```none
Install-Module -Scope CurrentUser posh-docker -Force if (-Not (Test-Path $PROFILE)) {
Add-Content $PROFILE "`nInstall-Module posh-docker" New-Item $PROFILE Type File Force
}
Add-Content $PROFILE "`nImport-Module posh-docker"
``` ```
This creates a `$PROFILE` if one does not already exist, and adds this line This creates a `$PROFILE` if one does not already exist, and adds this line
into the file: into the file:
```none ```none
Install-Module posh-docker Import-Module posh-docker
``` ```
To check that the file was properly created, or simply edit it manually, To check that the file was properly created, or simply edit it manually,