Skip to content

Instantly share code, notes, and snippets.

View be-aws-architect's full-sized avatar

aws-architect be-aws-architect

View GitHub Profile
@trautonen
trautonen / fish_prompt
Created April 26, 2018 15:00
Terraform workspaces in fish shell
# Edit your fish prompt with `funced fish_prompt` and
# add the following to a desired place in the function.
# Save the prompt after editing with `funcsave fish_prompt`.
# Set a variable for workspace color.
set -l tfworkspace_color (set_color green)
# Append the workspace name at the current prompt position if
# the directory contains a .terraform subdirectory
if test -d .terraform