Bash - Update terminal title by running a second command

后端 未结 8 1469
Happy的楠姐
Happy的楠姐 2020-12-24 13:27

On my terminal in Ubuntu, I often run programs which keep running for a long time. And since there are a lot of these programs, I keep forgetting which terminal is for which

8条回答
  •  伪装坚强ぢ
    2020-12-24 13:40

    You can set up bash such that it sends a certain escape sequence to the terminal every time it starts an external program. If you use the escape sequence that terminals use to update their titles, your problem should be solved.

    I have used that before, so I know it is possible. but I cannot remember it off the top of my head and do not have time to research the details right now, though.

提交回复
热议问题