How to add an icon to the bash prompt

前端 未结 6 842
予麋鹿
予麋鹿 2021-02-04 16:09

I know you can edit the bash prompt permanently by editing the PS1 variable in your ~/.bashrc file, mine looks like this:

PS1=\"\\[\\e[0;31m\\]

        
6条回答
  •  不知归路
    2021-02-04 16:39

    If you want to be able to do this you can search for a ton of different icons.

    https://emojipedia.org/

    I got this from that site.

提交回复
热议问题