LoginSignup
4
4

More than 5 years have passed since last update.

atom scriptでrbenv globalの環境を使う

Last updated at Posted at 2015-05-19

mac環境でatomのプラグインscriptからrubyを実行するとき困ったのでメモ。

からお知恵を拝借

結論としては、atomの初期化ファイル(init.coffee)で、rbenvのパスを通してあげればよい

init.coffee
process.env.PATH = ["/Users/xxx/.rbenv/bin", process.env.PATH].join(":")

環境変数が設定されたかどうかについては,consoleを開いて確認すればよい。

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4