【发布时间】:2015-07-26 23:17:37
【问题描述】:
我找到了一个我喜欢的主题,但是是在命令行中执行了一个程序,输出很多,所以我不知道当前主题的名称!
这是我的 .zshrc 的相关部分:
# Set name of the theme to load.
...
ZSH_THEME="random"
有没有办法确定我在哪个主题上?
【问题讨论】:
-
根据
oh-my-zsh.shline 85,就是print $RANDOM_THEME。 -
你是对的! .oh-my-zsh/themes/nanotech.zsh-theme ftw!将其添加为答案,以便我接受。
-
在默认的 omz
zshrc中,您可以在random上找到信息:# Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to know which specific one was loaded, run: echo $RANDOM_THEME # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes