Skip to content

Instantly share code, notes, and snippets.

@evilr00t
Created May 11, 2022 20:19
Show Gist options
  • Save evilr00t/706eba7a1b09b293b6911706d36dfa3c to your computer and use it in GitHub Desktop.
Save evilr00t/706eba7a1b09b293b6911706d36dfa3c to your computer and use it in GitHub Desktop.

Revisions

  1. evilr00t created this gist May 11, 2022.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    tf_config() {
    TF_CLI_CONFIG_FILE=$(ls -alh ~/.terraform.d/credentials-*.tfrc.json -1 2>/dev/null | fzf --exit-0) && export TF_CLI_CONFIG_FILE=$TF_CLI_CONFIG_FILE || echo "No TF credentials files found."
    }