I went to try and use
artii as ascii art in my terminal, but the gem wasn’t loading the way I wanted. My ruby environment via RVM would load, but the script in my zshrc wouldn’t run properly.
Loading ZSHRC would simply spit out:
env: ruby_executable_hooks: No such file or directory
But if I then went to run a ruby command from the same terminal the rvm environment was loaded and ruby had no problems pointing to the correct environment and binaries.
Quick solve to the problem was a fix applied to my environment using
wrappers rather than
bin location of the GEM.
Wrappers are generated automatically from RVM and will properly load the environment. Essentially
wrappers include the environment, and
bin does not.
$ which artii # /Users/Jack/.rvm/gems/ruby-2.6.3/bin/artii
Changing that output from
/Users/Jack/.rvm/gems/ruby-2.6.3/wrappers/artii and then putting the absolute file in my
~/.zshrc fixed the issue and I was back up and running able to run artii without issue from my zshrc.