Updating to macOS Catalina gives error on opening terminal
ERROR: Can\'t find Ruby library file or shared library colorls
usage: dirname path
/
Here is how I solved it:
sudo xcode-select --installbrew install rbenveval "$(rbenv init -)" to the end of ~/.zshrc or ~/.bash_profilerbenv install 2.6.0rbenv global 2.6.0gem env home (this should report something in your user folder, not system wide).After this I installed colorls again using sudo gem install colorls
If getting error:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
Try installing colorls using cmd:
sudo gem install colorls -n /usr/local/bin
After this you see colorls is installed successfully and new terminal works fine.