2016年3月5日 星期六

用自己喜歡的bash色彩


想要修改成自己"甲意"的bash環境很easy
切換到自己的家目錄 cd~
打開家目錄下的隱藏檔 .bashrc
把以下的文字貼到最後一行


export PS1="\[\033[38;5;11m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\h:\[$(tput sgr0)\]\[\033[38;5;6m\][\w]:\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]"
重啟Terminal後就會套用

有個網站專門讓你自製~很直覺
http://bashrcgenerator.com/

沒有留言:

熱門文章