Thanks to visit codestin.com
Credit goes to github.com

Skip to content

vagrant commands completion in PowerShell

License

cert01/posh-vagrant

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

posh-vagrant

vagrant commands completion in PowerShell

Install

  1. Run in PowerShell
##Requires git
$PathArray=@($env:PSModulePath -split ';')
$ModulePath = $PathArray | Where-Object -FilterScript {$_ -like "*$env:USERNAME*"}
if (-not(Test-Path $ModulePath)) {
  New-Item -Path $ModulePath -ItemType Directory
}
Push-Location -Path $ModulePath -StackName Original
$GIT_URL = "https://github.com/cert01/posh-vagrant"
$GIT_FILE = "posh-vagrant.psm1"
git clone --no-checkout --depth=1 --no-tags $GIT_URL
Push-Location -Path .\posh-vagrant\
git restore --staged $GIT_FILE
git checkout
git restore $GIT_FILE
git restore --staged *
Pop-Location -StackName Original
if (Add-Content $PROFILE.CurrentUserAllHosts -Value 'Import-Module posh-vagrant') {Import-Module posh-vagrant}

About

vagrant commands completion in PowerShell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%