在.bashrc添加 export PROMPT_COMMAND='echo -ne "\033]0;your wanted title\007"' 转载于:https://www.cnblogs.com/diegodu/p/6104785.html