From 3ba2b5940a9c5e414dc390e0b39d29013c47a572 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 10 May 2024 16:07:05 -0400 Subject: [PATCH] Revert "Add recursive tf init function" This reverts commit 6564c857cf0e0d123787c44bb956f43e50d41700. --- zsh/.zshrc | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 72e417c..e3313cc 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -272,14 +272,3 @@ PROMPT=$PROMPT'%{$(vterm_prompt_end)%}' type navi > /dev/null && eval "$(navi widget zsh)" eval "$(rbenv init - zsh)" - -tf-init-recursive() { - here=$(pwd) - dirs=$(find . -type f -name '*.tf' -exec dirname {} \; | sort | uniq | xargs readlink --canonicalize) - echo $dirs | while read -r dir; do - echo "Initializing Terraform in $dir" - cd $dir - terraform init || break - done - cd $here -}