Change gnome-terminal title to reflect the current directory?

后端 未结 5 1591
深忆病人
深忆病人 2021-02-01 15:16

I want to change the title of the gnome-terminal window to reflect the current directory. Is there a way to do that? A script may be? The \"change terminal title\" threads did n

5条回答
  •  春和景丽
    2021-02-01 16:04

    PROMPT_COMMAND='echo -ne "\033]0;$(basename ${PWD})\007"' will display only the current directory as the title

提交回复
热议问题