我在.zshrc
中使用oh-my-zsh和plugins=(git bundler)
。所以,我不需要捆綁器來生成binstubs。但捆綁商無論如何都會這樣做。如何防止bundler生成binstubs?
➜ bundle Using rake (0.9.2.2) ... Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
✗ ls bin erubis haml nokogiri rails rake2thor rdoc resque-web sass scss thor tt guard html2haml rackup rake rdiscount resque ri sass-convert thin tilt
誰叫binstubs獲取生成 - 我沒有通過一個選項,詢問他們。至少,我不認爲我是:
➜ which bundle /Users/david/.rbenv/shims/bundle ➜ cat /Users/david/.rbenv/shims/bundle
#!/usr/bin/env bash set -e export RBENV_ROOT="/Users/david/.rbenv" exec rbenv exec "${0##*/}" "[email protected]"
我沒有在我的~/.bundle/config
東西要麼。
請幫我把kabosh放在不受歡迎的binstubs上!
我相信而不是刪除'。bundle/config'作爲一個整體,編輯它並刪除'BUNDLE_BIN'這行就足夠了。 – 2013-03-23 09:05:18
'--no-binstubs'選項對我無效。我不得不手動編輯'.bundle/config'。 – 2013-09-01 11:24:37
我不得不'rm -rf .bundle/config'。不過,你應該首先檢查它的內容。對我來說,它只有'BUNDLE_BIN:bin'這一行,這似乎是罪魁禍首。 – 2014-06-20 19:43:10