小编oma*_*oma的帖子

运行bundle exec时zsh提示更正可执行文件

为什么 zsh 在运行捆绑程序时要求将 rspec 更正为 spec?

\n\n
\xe2\x9c\x97 rspec --version\n2.12.2\n\xe2\x9c\x97 bundle exec rspec --version\nzsh: correct \'rspec\' to \'spec\' [nyae]? n\n2.12.2\n
Run Code Online (Sandbox Code Playgroud)\n\n

系统:

\n\n
    \n
  • Ubuntu 12.10
  • \n
  • 使用rvm
  • \n
\n\n

我该如何解决?谢谢!

\n\n

更新:

\n\n

按照@mpy的要求ctrl-x h进行讨论bundle exec

\n\n
 \xe2\x9c\x97 bundle exec\ntags in context :completion::complete:bundle::\n    all-files  (_files _default (eval))\n
Run Code Online (Sandbox Code Playgroud)\n\n

更新2:

\n\n
[[ -o correctall ]] && echo enabled\nenabled   # on both machines\n
Run Code Online (Sandbox Code Playgroud)\n\n

评论答案:spec是一个目录

\n\n

我按照https://github.com/zsh-users/zsh-completions进行手动安装

\n\n
\xe2\x9c\x97 echo $fpath\n/home/ole/app/zsh-completions/src /scripts/zsh/Completion /home/ole/.oh-my-zsh/plugins/ruby /home/ole/.oh-my-zsh/plugins/bundler /home/ole/.oh-my-zsh/plugins/zeus …
Run Code Online (Sandbox Code Playgroud)

zsh oh-my-zsh ubuntu-12.10

5
推荐指数
1
解决办法
1848
查看次数

标签 统计

oh-my-zsh ×1

ubuntu-12.10 ×1

zsh ×1