https://github.com/dozyio/terraform-bash-workspace-prompt
Display the terraform workspace in bash prompt - with colours for prod & dev workspaces
https://github.com/dozyio/terraform-bash-workspace-prompt
Last synced: about 1 month ago
JSON representation
Display the terraform workspace in bash prompt - with colours for prod & dev workspaces
- Host: GitHub
- URL: https://github.com/dozyio/terraform-bash-workspace-prompt
- Owner: dozyio
- Created: 2020-08-04T14:14:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-04T22:49:36.000Z (about 5 years ago)
- Last Synced: 2025-04-08T10:14:47.118Z (6 months ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 17
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform Workspace Prompt for Bash
Show which workspace you are using within your bash prompt. Colour coded for dev, production & other workspaces - easy to extend to other environments.
[](https://asciinema.org/a/351587?autoplay=1)
# Install
```sh
mkdir ~/.bash_scripts
cd ~/.bash_scripts
wget https://raw.githubusercontent.com/dozyio/terraform-bash-workspace-prompt/master/terraform-bash-workspace-prompt.shecho "[[ -r \"~/.bash_scripts/terraform-bash-workspace-prompt.sh\" ]] && . \"~/.bash_scripts/terraform-bash-workspace-prompt.sh\"" >> ~/.bash_profile
```