Skip to content

Instantly share code, notes, and snippets.

@ImIOImI
Created May 8, 2020 14:29
Show Gist options
  • Save ImIOImI/d73444a04260aef846bb92ef1f6cd2cf to your computer and use it in GitHub Desktop.
Save ImIOImI/d73444a04260aef846bb92ef1f6cd2cf to your computer and use it in GitHub Desktop.
Add Terraform workspace to command prompt when using Posh-Git
$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