Updating to macOS Catalina gives error on opening terminal
ERROR: Can\'t find Ruby library file or shared library colorls
usage: dirname path
/
This fixed for me:
$ sudo gem update
$ sudo gem install colorls
Catalina now ships with Ruby 2.6, instead of 2.3. My guess is that with the upgrade, all custom installed gems became "untracked" by the new Ruby/Gem package system. With that, gem update
doesn't take care of updating colorls
.
Make sure you reinstall XCode command line tools, update/upgrade brew, npm and others.