Colors in Emacs shell prompt

后端 未结 4 2046
故里飘歌
故里飘歌 2021-01-17 14:39

Is it possible to use colors in the Emacs shell prompt (the prompt itself, not the rest of the shell screen) with the bash PS1 variable? I believe I have the syntax correct

4条回答
  •  悲哀的现实
    2021-01-17 15:28

    I use that to change the terminal color and the information in mac, maybe can help:

    Cyan="$(tput setaf 6)"
    NC="$(tput sgr0)" # No Color
    export PS1="$Cyan.Where-> \w\n\\$\[$NC\]"
    

提交回复
热议问题