-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This doesn't work on Windows despite there being a binary #199
Comments
I'll work on this. |
@warrensbox have you made any progress with this? |
is there going to be a Windows version? are there any blockers to doing having one? |
Should be just a 1 line change in lib/install.go:
Then to build: GOOS=windows GOARCH=amd64 go build -o tfswitch.exe Arrow keys won't work, it's an issue with promptui, so when selecting in the list you can use j and k. |
@ziggy471 Would you mind contributing by opening a PR for these changes? |
Finally had time to figure out the arrow keys as well. Actually had to figure out the windows binpath about 6 months ago when we started having some guys use windows. Just figured someone else would find a better fix prior to me remembering to actually do a PR for it. |
Hi! I found a workaround for this. Instead of running the normal After that, tfswitch will try to create a symlink to the downloaded path and add it to the ENV variables, but it failed. So as a workaround I add the Hope that's help |
The fix was a minimal fix to get the correct extension and working arrow keys, for my guys on Windows I've suggested the following in their PS Profile, 7.2 required:
This allow for PS to check when you change directories if it needs to switch, you could remove the check and just run tfswitch with every cd as well. |
any update of this issue? |
Huge time +1!!!! |
or |
FYI I confirm this works now properly on windows. |
I downloaded your latest version onto Windows and when I tried to use it I got the following error.
I'm happy to help you figure out the Windows version of this, nvs solves this problem in the same space.
Once this is working in Windows I'll re-open my PR to add tfswitch to scoop and open a PR back here for the docs.
The text was updated successfully, but these errors were encountered: