From daa9a230551c9cf54c39c36b93f3c20936dac302 Mon Sep 17 00:00:00 2001 From: Scott Peshak Date: Wed, 30 Oct 2024 10:54:05 -0500 Subject: [PATCH] Use tfenv to supply Terraform --- dot_zsh.d/tfenv/config.zsh | 7 +++++++ run_once_install-packages.sh.tmpl | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 dot_zsh.d/tfenv/config.zsh diff --git a/dot_zsh.d/tfenv/config.zsh b/dot_zsh.d/tfenv/config.zsh new file mode 100644 index 0000000..6c5c87b --- /dev/null +++ b/dot_zsh.d/tfenv/config.zsh @@ -0,0 +1,7 @@ +#!/usr/bin/env zsh +TFENV_DIR=/usr/local/Cellar/tfenv/3.0.0/bin + +if [ -d $TFENV_DIR ] +then + export PATH=$TFENV_DIR:$PATH +fi diff --git a/run_once_install-packages.sh.tmpl b/run_once_install-packages.sh.tmpl index 06e4e9b..73d7ce8 100644 --- a/run_once_install-packages.sh.tmpl +++ b/run_once_install-packages.sh.tmpl @@ -53,7 +53,7 @@ brew install \ shellcheck \ spaceman-diff \ ssh-copy-id \ - terraform \ + tfenv \ tig \ tmux \ trash \