重啟Terminal後就會套用
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)\]"
有個網站專門讓你自製~很直覺
http://bashrcgenerator.com/
重啟Terminal後就會套用
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)\]"
cd /home htpasswd -cb 檔名 帳號 密碼 htpasswd -b 其他帳號 密碼其中參數 c 是建立檔案,只有第一次產生時需要。修改密碼也是一樣的指令,就會覆蓋掉原本檔案內的字串。