如何设置的Aptana是我的默认BUNDLER_EDITOR?

问题描述 投票:3回答:2

我尝试使用下面的命令来打开宝石:

$bundle open jquery-rails

但它给我下面的错误:

To open a bundled gem, set $EDITOR or $BUNDLER_EDITOR

所以,我在读,我应该打开我的.bashrc文件,并设置BUNDLER_EDITOR变量搜索一点点。我做了以下几件事:

sudo gedit ~/.bashrc

并在该文件的末尾输入线之上:

export BUNDLER_EDITOR=aptana

在这个例子中他们使用vim,但由于我使用的Aptana工作室3我想使用它。

无论如何,它给我下面的错误:

无法运行“的Aptana /home/gotqn/.rvm/gems/ruby-1.9.3-p286/gems/jquery-rails-2.1.3”

我做错了吗?

ruby-on-rails gem editor aptana
2个回答
1
投票

试过,但它没有工作之一:

export EDITOR="/Applications/Sublime.app" peterandersson@Macintosh:myapp(0)$ bundle open jquery-rails Could not run '/Applications/Sublime.app /Users/peterandersson/.rvm/gems/ruby-1.9.3-p429/gems/jquery-rails-3.0.1' 

然而和export EDITOR=vimworks,但我宁愿用崇高不是VIM:

此链接介绍如何设置Sublime为默认$EDITOR


2
投票

我认为你需要设置$EDITOR$BUNDLER_EDITOR.profile文件。

您可以设置它是这样的:

export BUNDLER_EDITOR=aptana

希望这对你的作品!

© www.soinside.com 2019 - 2024. All rights reserved.