Skip to content

Instantly share code, notes, and snippets.

@gavvvr
Last active January 7, 2024 02:09
Show Gist options
  • Save gavvvr/7d90014adefa8b27fe3b0e1c2a0e6485 to your computer and use it in GitHub Desktop.
Save gavvvr/7d90014adefa8b27fe3b0e1c2a0e6485 to your computer and use it in GitHub Desktop.
Using SDKMAN! with git for Windows shell (git bash)
REM the below command requires cmd.exe to be executed with Admin privileges
mklink "C:\Program Files\Git\mingw64\bin\zip.exe" %HOMEPATH%\scoop\apps\7zip\current\7z.exe

Using SDKMAN! with git for Windows shell (git bash)

Prerequisite

If you are a software developer, most probably you already have both components already installed:

Installing SDKMAN! to your git bash

The only problem is that git bash for Windows does not include zip binary. To fix this you can symlink 7-zip (see [install-zip-to-git-bash.cmd]). That's it! Now you can proceed installing SDKMAN following the official instructions:

curl -s "https://get.sdkman.io" | bash
@fengxiaochuang
Copy link

replace zip.exe with funzip.exe is work

cp /usr/bin/funzip.exe /usr/bin/zip.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment