我的PS1
设置有问题,我设置它是为了显示git存储库分支和状态。
有时我对终端中被覆盖的线路有问题。我不知道为什么。如果我设置PS1="$ "
,它可以正常工作。事实上,下面的设置在我的另一款macOS Catalina/Terminal.app/bash.的macbook pro上运行得很好
#!/bin/bash -e
function init {
case $OSTYPE in
linux*)
MAGENTA='e[0;31m'
GREEN='e[0;32m'
ORANGE='e[1;33m'
BLUE='e[0;34m'
PURPLE='e[0;35m'
WHITE='e[0;37m'
RESET='e[0m'
;;
darwin*)
MAGENTA="