A prompt that displays the current Terraform workspace.
You can read more about Terraform workspaces here.
- Download the script.
wget -O ~/.terraform-workspace-prompt.sh https://raw.githubusercontent.com/amatellanes/terraform-workspace-prompt/master/terraform-workspace-prompt.sh
- Add to the
~/.bashrc
.
source $HOME/.terraform-workspace-prompt.sh
- Load
~/.bashrc
.
source ~/.bashrc