【问题标题】:Has anyone gotten Powerlevel9k Theming to look good on the *new* Windows Terminal/WSL?有没有人让 Powerlevel9k 主题在 *new* Windows 终端/WSL 上看起来不错?
【发布时间】:2019-07-30 22:34:42
【问题描述】:

我一直在尝试使用 WSL 和新的 Windows 终端,并希望它看起来不错。

我对 zsh 和 shell 主题有点陌生,尽管我有多个文档,这些文档看起来很简单,但我仍然在让事情看起来不错时遇到问题。

1.) 段分隔箭头出现了一点点 2.) 黑色背景显得透明。

当我在线阅读时,我只看到那些在 Mac 或 linux 或其他 Windows 终端上使用 zsh 和 powerlevel9k 的示例,但还没有看到新 Windows 终端的示例。有没有人试过这个? Windows 终端是否存在阻止主题正确呈现的错误,或者这一切都在我身上? :D

另外,如果您能够为新的 Windows 终端解决上述任何问题,当然要告诉我!

【问题讨论】:

    标签: terminal zsh windows-subsystem-for-linux oh-my-zsh windows-terminal


    【解决方案1】:

    使电力线连接看起来不错是困难的,但有更好的替代方案可能看起来更好。

    为您的终端找到最佳提示外观的更简单方法是从 Powerlevel9k 切换到 Powerlevel10k(它向后兼容但速度更快并且具有额外功能),重新启动 zsh,然后运行配置向导。如果您使用的是 Oh-My-Zsh,请运行以下命令:

    git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
    ( cd $ZSH_CUSTOM/themes/powerlevel10k && git pull )
    sed -e 's/powerlevel9k/powerlevel10k/g' -i ~/.zshrc
    exec zsh
    

    出现提示后,输入p10k configure。如果不好看,install the recommended font

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-11-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-18
      • 1970-01-01
      相关资源
      最近更新 更多