Giter Site home page Giter Site logo

Comments (2)

Xat59 avatar Xat59 commented on September 26, 2024 2

To install tfswitch as unprivileged user, use the -b option of the install.sh script. It defines the path directory of the tfswitch binary :

$ wget raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh
$ bash install.sh -b ~/.local/bin
warrensbox/terraform-switcher info checking GitHub for latest tag
warrensbox/terraform-switcher info found version: 0.10.1010 for 0.10.1010/linux/amd64
warrensbox/terraform-switcher info installed /home/xat/.local/bin/tfswitch

Then, I am able to tfswitch, but there I need to use -b to define the complete location of the terraform symlink for the binary :

~/.local/bin/tfswitch -b ~/.local/bin/terraform 
2021/03/05 10:38:38 Creating directory for terraform: /home/xat/.terraform.versions/
✔ 0.14.7
Downloading https://releases.hashicorp.com/terraform/0.14.7/terraform_0.14.7_linux_amd64.zip to terraform_0.14.7_linux_amd64.zip
Downloading ...
33783879 bytes downloaded.
Switched terraform to version "0.14.7" 

Hope this help

from terraform-switcher.

beanaroo avatar beanaroo commented on September 26, 2024

You can. Helpful instructions are provided on the Troubleshooting page.

I'm a bit disappointed this is not the default behaviour. pyenv, nvm all operate within the user directory. They also allow you to work on different versions on multiple projects at the same time.

tfswitch appears to modify the global context.

from terraform-switcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.