看板 FreeBSD 關於我們 聯絡資訊
※ 引述《Gracybaby (對愛情沒痛覺)》之銘言: : 請問一下喔 : 我看不太懂耶 : [33m\]....這些是要加的字or不是? : PS1=後面的內容可以再寫一遍嗎? : 還有我有個同事跟我說可以改/root/.profile : 加上一行export PS1='\h:\w\$ ' : 可是我加了沒用耶 : 加上了之後要再重開機才能work嗎? bash 請加到 ~/.bash_profile 或 ~/.bashrc 裡... (以下節錄自 man bash) \w the current working directory \h the hostname \$ if the effective UID is 0, a #, otherwise a $ ~/.bash_profile The personal initialization file, executed for login shells ~/.bashrc The individual per-interactive-shell startup file -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 222.250.222.221