一招告诉你怎样牛逼的显示终端,命令提示符
cat /etc/profile ======> . /etc/profile #使之生效
D=$'\e[37;40m' PINK=$'\e[35;40m' GREEN=$'\e[32;40m' ORANGE=$'\e[33;40m' hg_ps1() { hg prompt "{${D} on ${PINK}{branch}}{${D} at ${ORANGE}{bookmark}}{${GREEN}{status}}" 2> /dev/null } export PS1='\n${PINK}\u ${D}at ${ORANGE}\h ${D}in ${GREEN}\w`hg_ps1`\ ${D}\n\$ '