【发布时间】:2011-10-11 16:07:43
【问题描述】:
我刚刚发现了 oh-my-zsh,但我无法让它工作。虽然主题工作得很好,但插件却不行。我选择了一些插件,例如。 macports,但我既没有完成端口命令,也没有适当的别名工作。这是我的 .zshrc:
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
export ZSH_THEME="steeef"
# Set to this to use case-sensitive completion
# export CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# export DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# export DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# export DISABLE_AUTO_TITLE="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git osx github macports textmate svn)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin/:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/opt/local/bin:/opt/local/sbin
textmate 和 osx 插件似乎也不起作用 - zsh 只是抱怨未知命令并停止。 git 和 svn 有一些基本的完成,但我不确定它是由插件完成还是只是一个正常的 zsh 完成。我必须导出一些东西才能使用这些插件吗?或者如果没有,该怎么做才能解决这个问题?
【问题讨论】:
-
您是如何断定它们不起作用的?你能把zsh错误贴在这里吗?
-
当输入应该可用的命令时,错误只是一个正常的输出,例如“command not found”。
-
你能粘贴你最终使用的路径吗?我也有同样的问题,真的很有帮助
-
抱歉,2 年前,我已经更换了系统,不再使用 oh-my-zsh,因为与正确配置的 bash 相比性能较差。