oma*_*oma 5 zsh oh-my-zsh ubuntu-12.10
为什么 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\nRun Code Online (Sandbox Code Playgroud)\n\n系统:
\n\n我该如何解决?谢谢!
\n\n按照@mpy的要求ctrl-x h进行讨论bundle exec
\xe2\x9c\x97 bundle exec\ntags in context :completion::complete:bundle::\n all-files (_files _default (eval))\nRun Code Online (Sandbox Code Playgroud)\n\n[[ -o correctall ]] && echo enabled\nenabled # on both machines\nRun Code Online (Sandbox Code Playgroud)\n\n评论答案:spec是一个目录
我按照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 /home/ole/.oh-my-zsh/plugins/rvm /home/ole/.oh-my-zsh/plugins/rails3 /home/ole/.oh-my-zsh/plugins/git-extras /home/ole/.oh-my-zsh/plugins/git-flow /home/ole/.oh-my-zsh/plugins/git /home/ole/.oh-my-zsh/functions /home/ole/.oh-my-zsh/completions /usr/local/share/zsh/site-functions /usr/share/zsh/vendor-functions /usr/share/zsh/vendor-completions /usr/share/zsh/functions/Calendar /usr/share/zsh/functions/Chpwd /usr/share/zsh/functions/Completion /usr/share/zsh/functions/Completion/AIX /usr/share/zsh/functions/Completion/BSD /usr/share/zsh/functions/Completion/Base /usr/share/zsh/functions/Completion/Cygwin /usr/share/zsh/functions/Completion/Darwin /usr/share/zsh/functions/Completion/Debian /usr/share/zsh/functions/Completion/Linux /usr/share/zsh/functions/Completion/Mandriva /usr/share/zsh/functions/Completion/Redhat /usr/share/zsh/functions/Completion/Solaris /usr/share/zsh/functions/Completion/Unix /usr/share/zsh/functions/Completion/X /usr/share/zsh/functions/Completion/Zsh /usr/share/zsh/functions/Completion/openSUSE /usr/share/zsh/functions/Exceptions /usr/share/zsh/functions/MIME /usr/share/zsh/functions/Misc /usr/share/zsh/functions/Newuser /usr/share/zsh/functions/Prompts /usr/share/zsh/functions/TCP /usr/share/zsh/functions/VCS_Info /usr/share/zsh/functions/VCS_Info/Backends /usr/share/zsh/functions/Zftp /usr/share/zsh/functions/Zle\nRun Code Online (Sandbox Code Playgroud)\n\n$fpath 已更改。但没有效果。
\n\n摘自我的.zshrc
# Path to your oh-my-zsh configuration.\nZSH=$HOME/.oh-my-zsh\nZSH_THEME="robbyrussell"\n\n# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)\n# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/\n# Example format: plugins=(rails git textmate ruby lighthouse)\n\nplugins=(git git-flow git-extras rails3 rvm zeus bundler ruby)\n\nsource $ZSH/oh-my-zsh.sh \n\n# Customize to your needs...\nexport PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games\n\nPATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting\n[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function\n\nPATH=$PATH:/usr/lib/postgresql/9.1/bin/\nexport JAVA_HOME=$HOME/app/jdk1.7.0_15\n\nfpath=($HOME/app/zsh-completions/src $fpath)\nRun Code Online (Sandbox Code Playgroud)\n\n我的改变磨损了
\n\n- plugins=(git rails ruby)\n+ plugins=(git git-flow git-extras rails3 rvm zeus bundler ruby)\n\n+ fpath=($HOME/app/zsh-completions/src $fpath)\nRun Code Online (Sandbox Code Playgroud)\n\n但这没有效果。错误仍然存在(我每次都打开一个新的终端选项卡)
\n因为它认为 rspec 是 spec 的拼写错误?
nocorrect(例如alias bundle='nocorrect bundle'),CORRECT而不是CORRECT_ALL你似乎正在使用的[编辑] 注意 zsh 使用完成函数来确定期望的内容。在第二种情况下,它使用完成器bundle
| 归档时间: |
|
| 查看次数: |
1848 次 |
| 最近记录: |