首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >哦-my-zsh主题不能正确显示(背景保持为白色)

哦-my-zsh主题不能正确显示(背景保持为白色)
EN

Stack Overflow用户
提问于 2012-12-27 22:10:50
回答 3查看 39.2K关注 0票数 24

我正在尝试弄清楚为什么我的哦- my -zsh主题不能正常工作。颜色显示正确,但背景保持为白色(带有黑色文本)。下面是我的/.zshrc文件和当前path变量:

代码语言:javascript
复制
    # 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:

代码语言:javascript
复制
    ➜  ~  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)。

谢谢你的帮助。

EN

回答 3

Stack Overflow用户

发布于 2018-01-01 18:12:01

就像上面的答案所说的,它是“你需要改变终端仿真器的颜色设置:”

我找不到任何理由更改终端应用程序,最简单的方法是只将主题更改为以下链接中的一个可用主题,您可以找到一个适合于哦-my-zsh主题的主题。

osx-terminal-themes

票数 0
EN

Stack Overflow用户

发布于 2019-12-13 06:27:15

对我来说,修复是在首选项面板中找到的,在那里我必须取消选择覆盖主题的……

我在Red Hat的一个实例上使用gnome-terminal。

可在以下位置找到: Terminal -> Preferences -> Unnamed -> Colors -> Use colors from system theme

(我花了很长时间才意识到……)

票数 0
EN

Stack Overflow用户

发布于 2021-11-19 20:04:13

我很惊讶这不是开箱即用的。但是,我只对Basic主题做了一些细微的更改:

  • 将背景更改为深色
  • 将文本更改为浅色
  • 更改选择/不透明度以获得良好的突出显示效果

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

有了滴管和a picture of his theme,你应该可以离得很近。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14056007

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档