You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I struggled a bit with the default terraform path. I don't want to place it in /usr/local/bin/terraform and I don't want to add -b or --path for each call. My first try was .tfswitch.toml which solved this problem. But I also want to use version.tf. I don't want to use both version.tf and .tfswitch.toml to avoid changing the current version in two places.
Here's my current workaround. I use version.tf and in addition I created the following alias: alias tfswitch='tfswitch -b ~/bin/tf '
Maybe you can get the terraform path from an environment variable or from a default config as described in issue #71.
Thank you!
The text was updated successfully, but these errors were encountered:
Also a problem on Arch. A neat solution would be to check for a .tfswitch.toml file in the users home directory (without the version specified) and use this path as the default. I have a dozen or so terraform directories and would prefer not to create a file in each one. The alias workaround is good for now.
Hello!
thank you for this awesome tool!
I struggled a bit with the default terraform path. I don't want to place it in
/usr/local/bin/terraform
and I don't want to add-b
or--path
for each call. My first try was.tfswitch.toml
which solved this problem. But I also want to useversion.tf
. I don't want to use bothversion.tf
and.tfswitch.toml
to avoid changing the current version in two places.Here's my current workaround. I use
version.tf
and in addition I created the following alias:alias tfswitch='tfswitch -b ~/bin/tf '
Maybe you can get the terraform path from an environment variable or from a default config as described in issue #71.
Thank you!
The text was updated successfully, but these errors were encountered: