一招告訴你怎樣牛逼的顯示終端,命令提示符


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\$ '
相關文章
相關標籤/搜索