如何设置鱼壳的宝石路径? [英] How to set up path for gems with the Fish shell?
问题描述
sanoy @ nice-system〜/ D / c / h / bellevue> gem install bundle
警告:您的PATH中没有/home/sanoy/.gem/ruby/2.2.0/bin,
gem可执行文件将无法运行。成功安装bundle-0.0.1
为bundle-0.0.1解析文档完成安装
0秒后的捆绑文档1安装了gem
sanoy @ nice-system〜/ D / c / h / bellevue> bundle install fish:
未知命令'bundle'
$ b
config.fish文件
set PATH< /home/sanoy/.gem/ruby/2.2.0/bin> $ PATH
set -gx PATH $ PATH< /home/sanoy/.gem/ruby/2.2.0/bin>
c $ c> fish.config 修复了这个问题:
set -gx PATH〜/ .gem /ruby/2.2.0/bin $ PATH
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>
As discovered in comments, leaving single line in fish.config
fixes the problem:
set -gx PATH ~/.gem/ruby/2.2.0/bin $PATH
这篇关于如何设置鱼壳的宝石路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!