Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要命令
PROMPT_COMMAND=echo
每次打开 bash 时都会执行。有人告诉我这个命令可以从 读取~/.profile,但是,我不知道如何把它放在那里。
~/.profile
echo 'PROMPT_COMMAND=echo' >> ~/.profile
如果你在mac上,你必须将它添加到
~/.bash_profile
如果在linux上,它将进入
~/.bashrc