我剛剛發現了oh-my-zsh,但我無法使其正常工作。儘管主題完美無缺,但插件卻沒有。我選擇了一些插件,例如。 macports,但我既沒有獲得端口命令的完成,也沒有做適當的別名工作。這是我的.zshrc:oh-my-zsh插件無法正常工作
# 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錯誤嗎? – NARKOZ
當輸入應該可用的命令時,這些錯誤只是一個正常的輸出,如「找不到命令」。 –
試試默認的主題? – zeroasterisk