我试图为我的终端安装纯提示,但我认为它不起作用。相反,每次我打开终端时,我都会在顶部看到这个:
Usage: prompt <options>
Options:
-c Show currently selected theme and parameters
-l List currently available prompt themes
-p [<themes>] Preview given themes (defaults to all)
-h [<theme>] Display help (for given theme)
-s <theme> Set and save theme
<theme> Switch to new theme immediately (changes not saved)
Use prompt -h <theme> for help on specific themes.
我认为这不应该出现是对的吗?同样,当我看到所有的主题时,纯粹是不存在的。我应该如何解决此问题?
我的.zshrc文件包含以下内容:
setopt AUTO_CD
# initialise nice autocompletion
autoload -U compinit && compinit
# do not autoselect the first completion entry
unsetopt MENU_COMPLETE
unsetopt FLOW_CONTROL
# show completion menu on successive tab press
setopt AUTO_MENU
setopt COMPLETE_IN_WORD
setopt ALWAYS_TO_END
# use a pretty menu to select options
zstyle ':completion:*:*:*:*:*' menu select
# initialize pure prompt
autoload -U promptinit; promptinit
prompt pure
您是如何安装Pure的?在调用promptinit
:之前,您需要确保其目录已添加到$fpath
,
fpath+=( /path/to/pure )
autoload -Uz promptinit
promptinit
prompt pure
---
注意:这适用于您想与promptinit
一起使用的任何主题,而不仅仅是Pure。