You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asdf not added to path after install
using osx sonoma
might be missing some directions but I could not find any more steps to try
Steps to Reproduce
1 install asdf from https://asdf-vm.com/guide/getting-started.html
brew install asdf
run echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> ${ZDOTDIR:-~}/.zshrc
in my zshrc I see
. /usr/local/opt/asdf/asdf.sh
. /usr/local/opt/asdf/libexec/asdf.sh
2 asdf plugin add ruby
asdf install ruby latest
asdf global ruby 3.3.5
ruby -v is still 2.6 system ruby
3 went thought #785 asdf is working no errors, it is in path, the issue is the shim is not in path before system ruby, #531 I tried asdf reshim ruby
still
type -a ruby
ruby is /usr/bin/ruby
echo $PATH still has /user/bin first
also redid all the home brew instructions for brew install asdf https://docs.brew.sh/Shell-Completion#configuring-completions-in-zsh
4 since it is not working I also run through all the stackoverflow posts and in bashprofile I also have
. "/usr/local/opt/asdf/etc/bash_completion.d/asdf.bash"
. "/usr/local/opt/asdf/libexec/asdf.sh"
I also followed #837 echo -e "\n. $(brew --prefix asdf)/asdf.sh" >> ~/.zshrc
and checked
.tool-versions has ruby 3.3.5
same instruction was provided in asdf-vm/asdf-ruby#103
I used echo -e "\n. $(brew --prefix asdf)/asdf.sh" >> ${ZDOTDIR:-~}/.zshrc
which added /usr/local/opt/asdf/asdf.sh to my .zshrc and this fixed my problem.
5 additional check I have done
asdf list ruby
*3.3.5
after adding to my.zshrc, my type -a ruby still only has /usr/bin/ruby, those are all the stackoverflow github issues I can find and tried
Describe the Bug
asdf not added to path after install
using osx sonoma
might be missing some directions but I could not find any more steps to try
Steps to Reproduce
1 install asdf from https://asdf-vm.com/guide/getting-started.html$(brew --prefix asdf)/libexec/asdf.sh" >> $ {ZDOTDIR:-~}/.zshrc
brew install asdf
run echo -e "\n.
in my zshrc I see
. /usr/local/opt/asdf/asdf.sh
. /usr/local/opt/asdf/libexec/asdf.sh
2 asdf plugin add ruby
asdf install ruby latest
asdf global ruby 3.3.5
ruby -v is still 2.6 system ruby
3 went thought #785 asdf is working no errors, it is in path, the issue is the shim is not in path before system ruby, #531 I tried asdf reshim ruby
still
type -a ruby
ruby is /usr/bin/ruby
echo $PATH still has /user/bin first
also redid all the home brew instructions for brew install asdf https://docs.brew.sh/Shell-Completion#configuring-completions-in-zsh
4 since it is not working I also run through all the stackoverflow posts and in bashprofile I also have
. "/usr/local/opt/asdf/etc/bash_completion.d/asdf.bash"
. "/usr/local/opt/asdf/libexec/asdf.sh"
I also followed #837
echo -e "\n. $(brew --prefix asdf)/asdf.sh" >> ~/.zshrc
and checked
.tool-versions has ruby 3.3.5
same instruction was provided in asdf-vm/asdf-ruby#103
5 additional check I have done
asdf list ruby
*3.3.5
after adding to my.zshrc, my type -a ruby still only has /usr/bin/ruby, those are all the stackoverflow github issues I can find and tried
6 I also see some conflicting info #891
Expected Behaviour
$ type -a ruby
ruby is /Users/host/.asdf/shims/ruby
ruby is /usr/bin/ruby
Actual Behaviour
$ type -a ruby
ruby is /usr/bin/ruby
Environment
asdf plugins affected (if relevant)
No response
The text was updated successfully, but these errors were encountered: