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.
每次有人按 Enter 时,如何让 bash 调用(bash)脚本?
我希望每次显示时都会更改提示。
有关 PROMPT_COMMAND,请参见 bash 手册页。听起来您将希望在设置 PROMPT_COMMAND 的任何函数中设置 PS1 的值。