vagrant commands completion in PowerShell
- PowerShellを起動
- インストール先を決定するために
$env:PSModulePathを実行。出力されたパスの中から任意の場所を選びます。よくわからない場合はC:\Users\<USER_NAME>\Documents\WindowsPowerShell\Modulesを選びます。 - インストール先にposh-vagrantディレクトリを作成し、作成したディレクトリにposh-vagrant.psm1を配置します。
- PowerShellで
Add-Content -Path $PROFILE.CurrentUserAllHosts 'Import-Module posh-vagrant'を実行します。