hiddenman
V2EX  ›  问与答

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

  •  
  •   hiddenman · Apr 1, 2015 · 3507 views
    This topic created in 4085 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   ·   5804 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 72ms · UTC 03:38 · PVG 11:38 · LAX 20:38 · JFK 23:38
    ♥ Do have faith in what you're doing.