回答編集履歴
3
自己解決
test
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
自己解決できました。
|
2
|
+
|
3
|
+
|
4
|
+
|
1
5
|
.zshrc にoh-my-zshのpluginsを書いていたのですが、
|
2
6
|
|
3
7
|
`plugins=(bundler)` を消すとrequireできました。
|
2
oh-my-zshについて
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
.zshrc にpluginsを書いていたのですが、
|
1
|
+
.zshrc にoh-my-zshのpluginsを書いていたのですが、
|
2
2
|
|
3
3
|
`plugins=(bundler)` を消すとrequireできました。
|
4
4
|
|
1
詳しい内容にした
test
CHANGED
@@ -1,3 +1,25 @@
|
|
1
1
|
.zshrc にpluginsを書いていたのですが、
|
2
2
|
|
3
|
-
`plugins=(bundler)` を消すと
|
3
|
+
`plugins=(bundler)` を消すとrequireできました。
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
[bundlerプラグイン](https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins#bundler)の公式wikiに
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
Also creates shell aliases so you don't have to type "bundle exec" before most common ruby commands when you are in a directory with a Gemfile.
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
とあります。
|
16
|
+
|
17
|
+
Gemfileのあるディレクトリにいるとき、最も一般的なrubyコマンドには`bundle exec`が自動で補われるようです。
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
つまり、`plugins=(bundler)`を.zshrcに書いてあると
|
22
|
+
|
23
|
+
`$irb`が`$bundle exec irb`になるようです。
|
24
|
+
|
25
|
+
Gemfileに特にgemを記述していなかったのでrequireされませんでした。
|