diff options
Diffstat (limited to 'dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/terraform.zsh')
| m--------- | dot-oh-my-zsh | 0 | ||||
| -rw-r--r-- | dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/terraform.zsh | 40 |
2 files changed, 0 insertions, 40 deletions
diff --git a/dot-oh-my-zsh b/dot-oh-my-zsh new file mode 160000 +Subproject 6fe84bf5c82da7b1f6d7c5ec3e5c447721ac8ce diff --git a/dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/terraform.zsh b/dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/terraform.zsh deleted file mode 100644 index 6f290b5e..00000000 --- a/dot-oh-my-zsh/custom/themes/spaceship-prompt/sections/terraform.zsh +++ /dev/null @@ -1,40 +0,0 @@ -# -# Terraform Workspaces -# -# Terraform automates the repetitive tasks of setting up cloud resources -# Link: https://www.terraform.io -# -# This section shows you the current Terraform workspace -# Link: https://www.terraform.io/docs/state/workspaces.html - -# ------------------------------------------------------------------------------ -# Configuration -# ------------------------------------------------------------------------------ - -SPACESHIP_TERRAFORM_SHOW="${SPACESHIP_TERRAFORM_SHOW=true}" -SPACESHIP_TERRAFORM_PREFIX="${SPACESHIP_TERRAFORM_PREFIX="$SPACESHIP_PROMPT_DEFAULT_PREFIX"}" -SPACESHIP_TERRAFORM_SUFFIX="${SPACESHIP_TERRAFORM_SUFFIX="$SPACESHIP_PROMPT_DEFAULT_SUFFIX"}" -SPACESHIP_TERRAFORM_SYMBOL="${SPACESHIP_TERRAFORM_SYMBOL="🛠"}" -SPACESHIP_TERRAFORM_COLOR="${SPACESHIP_TERRAFORM_COLOR="105"}" - -# ------------------------------------------------------------------------------ -# Section -# ----------------------------------------------- ------------------------------- - -spaceship_terraform() { - [[ $SPACESHIP_TERRAFORM_SHOW == false ]] && return - - spaceship::exists terraform || return - - # Show Terraform Workspaces when exists - [[ -f .terraform/environment ]] || return - - local terraform_workspace=$(<.terraform/environment) - [[ -z $terraform_workspace ]] && return - - spaceship::section \ - "$SPACESHIP_TERRAFORM_COLOR" \ - "$SPACESHIP_TERRAFORM_PREFIX" \ - "$SPACESHIP_TERRAFORM_SYMBOL$terraform_workspace" \ - "$SPACESHIP_TERRAFORM_SUFFIX" -} |
