hiddenman
V2EX  ›  问与答

Zsh 中很多图标是怎么实现的?

  •  
  •   hiddenman · Apr 1, 2015 · 3508 views
    This topic created in 4088 days ago, the information mentioned may be changed or developed.
    Zsh中很多图标是怎么实现的?

    想在Python中借鉴一下,但是不知道如何写
    3 replies    2015-04-02 11:59:17 +08:00
    chunyang
        1
    chunyang  
       Apr 1, 2015
    估计指的是 Unicode 字符,比如:oh-my-zsh 的默认主题的 shell prompt 的第一个字符是“➜”,在 shell 可以这样显示出来:

    ➜ ~ echo -n ➜ | hexdump
    0000000 e2 9e 9c
    0000003
    ➜ ~ echo -e "\xe2\x9e\x9c"
    lululau
        2
    lululau  
       Apr 1, 2015
    要安装/设置字体的
    hiddenman
        3
    hiddenman  
    OP
       Apr 2, 2015
    @chunyang @lululau 赞。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5159 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 09:26 · PVG 17:26 · LAX 02:26 · JFK 05:26
    ♥ Do have faith in what you're doing.