Skip to content

Commit

Permalink
Add preview lines for terraform workspace segment
Browse files Browse the repository at this point in the history
  • Loading branch information
PicoSushi committed Aug 21, 2018
1 parent 64643c9 commit 31180c8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions generatePreview.sh
Expand Up @@ -38,6 +38,14 @@ cd /tmp/home/deep/down/into/the/abyss/of/directories/where/no/one/ever/comes/;

powerline-go -shell bare $FLAGS;

# terraform
if hash terraform 2>/dev/null; then
mkdir -p /tmp/home/terraform && cd /tmp/home/terraform
echo "create terraform workspace named 'production' at ~/terraform"
terraform init 1>/dev/null && terraform workspace new production 1>/dev/null
powerline-go -shell bare $FLAGS
fi

rm -rf /tmp/home;

echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;echo;

0 comments on commit 31180c8

Please sign in to comment.