How do I properly set up path for gems with the Fish shell?
sanoy@nice-system ~/D/c/h/bellevue> gem install bundle
WARNING: You don't have /home/sanoy/.gem/ruby/2.2.0/bin in your PATH, gem executables will not run. Successfully installed bundle-0.0.1 Parsing documentation for bundle-0.0.1 Done installing
documentation for bundle after 0 seconds 1 gem installed
sanoy@nice-system ~/D/c/h/bellevue> bundle install fish: Unknown command 'bundle'
config.fish file
set PATH </home/sanoy/.gem/ruby/2.2.0/bin> $PATH
set -gx PATH $PATH </home/sanoy/.gem/ruby/2.2.0/bin>
It is likely better to use a dynamically updated path based on version, especially if version updates without distro updates like in Arch Linux
set -U fish_user_paths (ruby -e 'print Gem.user_dir')/bin $fish_user_paths
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With