对于安装的zsh + prezto主题电力线字体 [英] Installing powerline fonts for zsh + Prezto theme

查看:2732
本文介绍了对于安装的zsh + prezto主题电力线字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用岩组+ prezto我的脚本外壳配置。我一直在使用索林主题,但我与它有点不满。我想切换到<一个href=\"https://github.com/paradox460/$p$pzto/blob/paradox/modules/prompt/functions/prompt_paradox_setup\"相对=nofollow>悖论主题!

它应该是这样的:


  

块引用


我有一些麻烦这样做。当我切换到题材,符号不能加载,所以我得到一个提示,看起来像这样:


  

块引用


注意盒装问号的地方应该有背景或git的分支的分支符号边缘的边界。 (看看在悖论主题preVIEW的这里)。

我见过这里,我应该安装< A HREF =htt​​ps://github.com/powerline/fonts相对=nofollow>电力线通信修补字体,在符号正确加载英寸然而,正如我的过程不太熟悉,我喜欢一些帮助其安装到我的OS X的。

文档,它注意到我应该通过<$安装C $ C> PIP 。当我运行 PIP安装--user电力线状态,我的提示是仍然无法显示符号,它应该的样子。

还有什么必须做,在运行安装后,才能正确显示此提示?

我正在使用的MacBook Pro与埃尔卡皮坦


更新:我已经安装了电力线字体和运行install.sh EXEC,改变了我的终端preferred字体,并测试了该提示的新面貌。符号现在显示的,但是,它们从提示行的基线提出,像这样:

在这里输入的形象描述

注意,\\ ue0b0的符号被从行的底部升高。


解决方案

这是所有关于电力线符号。

要获得工作作为 mike@Mikes-Laptop.local 电力线符号有:


  1. 下载一个电力线字体。对于下载好的字体可以在 https://github.com/powerline/fonts


  2. 运行 ./ install.sh 安装它。


  3. 更​​改字体在终端preferences使用新的电力线的字体。


在这里输入的形象描述

<醇开始=4>
  • 测试!为了测试在终端的字形:

    回声\\ ue0b0 \\ u00b1 \\ ue0a0 \\ u27a6 \\ u2718 \\ u26​​a1 \\ u26​​99

  • 在这里输入的形象描述

    现有指令是针对Mac OS版本10.1​​1与终端,但可以适用于其他设置类似。

    I am currently using Zsh + Prezto for my scripting shell configuration. I have been using the sorin theme but am a little dissatisfied with it. I'd like to switch to the paradox theme!

    It is supposed to look like this:

    I'm having some trouble doing that. When I switch to the theme, the symbols aren't able to load, so I get a prompt that looks like this:

    Notice the boxed question marks where there should be an edge border for the background or a branch symbol for the git branch. (Take a look at the paradox theme preview here).

    I've seen here that I should install Powerline patched fonts for the symbols to load in correctly. However, as I'm somewhat unfamiliar with the process, I would love some help installing it into my OS X.

    In the documentation, it notes I should install via pip. When I run pip install --user powerline-status, my prompt is still unable to display the symbols the way it should look.

    What else must I do, after running the installation, to display this prompt correctly?

    I am using a MacBook Pro with El Capitan


    Update: I have installed the powerline fonts and run the install.sh exec, changed my terminal preferred font, and tested out the new look of the prompt. The symbols now display, however, they are raised from the baseline of the prompt row, like so:

    Notice that the symbol of "\ue0b0" is elevated from the bottom of the row.

    解决方案

    It is all about the Powerline symbols.

    To get the Powerline symbols working as mike@Mikes-Laptop.local has:

    1. Download a Powerline font. A good font for downloading can be found at https://github.com/powerline/fonts

    2. Install it by running ./install.sh.

    3. Change the font in your Terminal preferences to use the new Powerline font.

    1. Test! To test the glyphs in a terminal: echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"

    The prior instructions were intended for Mac OS version 10.11 with Terminal, but may work similar for other setups.

    这篇关于对于安装的zsh + prezto主题电力线字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆