Skip to content
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

Sourcing asdf has broken the zsh #738

Closed
lngsx opened this issue Dec 15, 2023 · 1 comment
Closed

Sourcing asdf has broken the zsh #738

lngsx opened this issue Dec 15, 2023 · 1 comment

Comments

@lngsx
Copy link

lngsx commented Dec 15, 2023

Recently, I just set up a Linux, Fedora actually, with no homebrew and had
this issue.

Screenshot from 2023-12-15 22-59-27

I suspect the problem comes from this commit. fc26249

  • This code assumes that asdf is already installed in the system, either through
    homebrew or regular asdf.
  • This code assumes homebrew already installed in the system.

In a system with no asdf and Homebrew installed, the shell will run into the second case, executing which brew which will cause an error.

I'm not sure what's really going on here. The zsh script is too hardcore for
me. But I believe something's broken when you try to execute brew when it doesn't exist in the system.

My naive implementation would be using the same code introduced in this commit #704.
to check if Homebrew is present in the system before proceed to source the asdf

Thank you.

@lngsx
Copy link
Author

lngsx commented Dec 15, 2023

Just open the PR to fix this.

@lngsx lngsx closed this as completed Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant