How do zsh ansi colour codes work?

前端 未结 4 727
后悔当初
后悔当初 2020-12-13 09:45

I want to make my hostname in my terminal orange. How do I do that?

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 10:28

    Your question does not make it clear if you are familiar with the idea of customising the zsh prompt, but are having trouble with colours codes.

    There's plenty of information on the internet. Here's two links:

    • http://www.zshwiki.org/home/config/prompt
    • http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/

    They should cover both customising the prompt and using colour codes to assign colours.

提交回复
热议问题