zsh returns bad interpreter after Catalina upgrade

by christian Martin   Last Updated October 10, 2019 00:01 AM

Getting an error message after upgrading to macOS Catalina. It looks like the installation removed Ruby version 2.3 which colorls was was initially installed with: below is the error message:

zsh: /usr/local/bin/colorls: bad interpreter: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: no such file or directory

but when i ruby -v I get ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19] I will like to find a way to make sure colorls recognizes ruby 2.6 instead of 2.3

I have tried reinstalling and then uninstalling it multiple times but I am still getting the same error.

I did manage to temporarily make the error message disappear by using

PATH="`ruby -e 'puts Gem.user_dir'`/bin:$PATH"

but it's not persistent and every time I open a new terminal the error message comes but again. I will like to find a way to make it persistent

Related Questions

Updated September 18, 2019 21:01 PM

Updated October 08, 2019 18:01 PM

Updated October 11, 2019 22:01 PM