How to add an icon to the bash prompt
问题 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\]<HERP(._.)DERP>\[\e[0;0m\]"; but can you set a tiny little image in there as well? For instance, if I wanted to add a little American flag icon, or something before "HERP(._.)DERP", could I do this? 回答1: Sorry, no. Terminals don't do graphics. For a full description of what you can do, see the PROMPTING section of the bash(1) man page: PROMPTING When