Pengwin: SDKMAN is not working on ZSH

Created on 16 Dec 2019  路  5Comments  路  Source: WhitewaterFoundry/Pengwin

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Install pengwin
  2. run pengwin-setup
  3. install jdkman and zsh shell
  4. restart
  5. try sdk command on zsh, not found

Expected behavior
sdk command should list all the command available for SDKMAN

Screenshots
On bash
image
On zsh
image

Pengwin Version

Find: Settings->Apps->Apps & features->Pengwin->Advanced Options->Version.

Insert here: 1.2.8.0

Windows Build

Run 'systeminfo | findstr /C:"OS"' in Command Prompt and insert here: 19041

Most helpful comment

Run the following command and restart pengwin:

echo source "${HOME}/.sdkman/bin/sdkman-init.sh">>"${HOME}/.zshrc"

Regards

All 5 comments

We will put it on the roadmap. Thank you for reporting

Hello,

Be sure that you set ZSH as your default shell, then install again SDKMAN from pengwin-setup.

The order is important here. Sdkman installs its configuration in the default shell.

Regards

Do I have to reinstall everything?

Because right now, even with ZSH as my default shell, when I attempt to install SDKMAN again, it says that SDKMAN already installed

Run the following command and restart pengwin:

echo source "${HOME}/.sdkman/bin/sdkman-init.sh">>"${HOME}/.zshrc"

Regards

It works! Thanks!

edit:

a suggestion to eliminate future cases like this,

when a user ticks custom shell in their pengwin-setup, pengwin should install the custom shell first, then install all the other tools

Was this page helpful?
0 / 5 - 0 ratings

Related issues

laurin1 picture laurin1  路  4Comments

patmolloy picture patmolloy  路  4Comments

rsrini7 picture rsrini7  路  3Comments

WSLUser picture WSLUser  路  4Comments

rdmueller picture rdmueller  路  3Comments