我正在尝试弄清楚为什么我的哦- my -zsh主题不能正常工作。颜色显示正确,但背景保持为白色(带有黑色文本)。下面是我的/.zshrc文件和当前path变量:
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
# 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="robbyrussell"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
#DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git rails ruby brew)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
autoload -U colors
colors下面是$PATH:
➜ ~ echo $PATH
/Users/natascha/.rbenv/shims:/Users/natascha/.rbenv/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/usr/texbin我使用的是MacOSX10.7.5,几个月前就安装了哦-my-zsh。我在git上发了一个帖子,https://github.com/robbyrussell/oh-my-zsh/issues/929#issuecomment-11652602,似乎还是没有解决?我的插件可以工作(例如,我可以在"rails console“中输入rails c)。
谢谢你的帮助。
发布于 2018-01-01 18:12:01
就像上面的答案所说的,它是“你需要改变终端仿真器的颜色设置:”
我找不到任何理由更改终端应用程序,最简单的方法是只将主题更改为以下链接中的一个可用主题,您可以找到一个适合于哦-my-zsh主题的主题。
发布于 2019-12-13 06:27:15
对我来说,修复是在首选项面板中找到的,在那里我必须取消选择覆盖主题的……
我在Red Hat的一个实例上使用gnome-terminal。
可在以下位置找到: Terminal -> Preferences -> Unnamed -> Colors -> Use colors from system theme
(我花了很长时间才意识到……)
发布于 2021-11-19 20:04:13
我很惊讶这不是开箱即用的。但是,我只对Basic主题做了一些细微的更改:

此外,在选择颜色时,请使用滴管来获得您正在寻找的确切颜色:

有了滴管和a picture of his theme,你应该可以离得很近。
https://stackoverflow.com/questions/14056007
复制相似问题