如何设置鱼壳的宝石路径? [英] How to set up path for gems with the Fish shell?

查看:100
本文介绍了如何设置鱼壳的宝石路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆