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

Homebrew install doesn't work #394

Closed
chaotic-stump opened this issue Nov 2, 2018 · 2 comments
Closed

Homebrew install doesn't work #394

chaotic-stump opened this issue Nov 2, 2018 · 2 comments

Comments

@chaotic-stump
Copy link

Steps to reproduce

brew install asdf

Expected behavior

adsf -h should return helpful commands

Actual behavior

asdf command not found

Environment

OS: Mac Mojave 10.14.1

asdf version: 0.6.0

@Stratus3D
Copy link
Member

adsf -h isn't a command. Can you confirm you were in fact using the asdf command?

@humankindof
Copy link

To make homebrew's completions available in bash, you must source the definitions as part of your shell startup. They have to be in your PATH.

For me, on a Mac, this simply means running each of these commands
echo -e '\n. $(brew --prefix asdf)/asdf.sh' >> ~/.bash_profile
echo -e '\n. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash' >> ~/.bash_profile

The second command is unnecessary if you have configured completions for Homebrew in ~/.bash_profile

Homebrew bash configuration completion code:
https://docs.brew.sh/Shell-Completion#configuring-completions-in-bash

asdf install instructions for each system here:
https://asdf-vm.com/#/core-manage-asdf-vm

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

3 participants