Created
May 8, 2020 14:29
-
-
Save ImIOImI/d73444a04260aef846bb92ef1f6cd2cf to your computer and use it in GitHub Desktop.
Add Terraform workspace to command prompt when using Posh-Git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$GitPromptSettings.DefaultPromptPrefix.Text = '$(if(Test-Path -Path ".terraform"){terraform workspace show}) ' | |
$GitPromptSettings.DefaultPromptPrefix.ForegroundColor = [ConsoleColor]::Magenta |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment