How do you echo a 4-digit Unicode character in Bash?

后端 未结 18 1978
醉梦人生
醉梦人生 2020-11-29 14:38

I\'d like to add the Unicode skull and crossbones to my shell prompt (specifically the \'SKULL AND CROSSBONES\' (U+2620)), but I can\'t figure out the magic incantation to m

18条回答
  •  [愿得一人]
    2020-11-29 15:14

    Here is a list of all unicode emoji's available:

    https://en.wikipedia.org/wiki/Emoji#Unicode_blocks

    Example:

    echo -e "\U1F304"
    

提交回复
热议问题