A set of PowerShell scripts which provide TF/PowerShell integration
The prompt within TF workspaces would show something useful,
if I could figure out how to get something useful out of tf.
Provides tab completion for common commands when using tf.
E.g. tf ch<tab> --> tf checkout
See profile.example.ps1 as to how you can integrate the tab completion and/or TF prompt into your own profile.
Prompt formatting, among other things, can be customized using $TFPromptSettings.
-
Verify you have PowerShell 2.0 or better with $PSVersionTable.PSVersion
-
Verify execution of scripts is allowed with
Get-ExecutionPolicy(should beRemoteSignedorUnrestricted). If scripts are not enabled, run PowerShell as Administrator and callSet-ExecutionPolicy RemoteSigned -Scope CurrentUser -Confirm. -
Clone the posh-tf repository to your local machine.
-
From the posh-tf repository directory, run
.\install.ps1. -
Enjoy!