我试图更好地理解 Ubuntu 的 /etc/alternatives 机制。基础很简单:它允许在同一台机器上安装多个“提供程序”,并配置默认设置。例如,如果您安装了 Java SE 5 和 Java SE 6,则 /etc/alternatives 句柄是您的默认 JRE。
我想了解的是:
如何将当前正在运行的进程名称放入 GNOME 终端选项卡标题(或只有一个选项卡时的标题栏)?
- 更新 -
为了澄清,我希望在运行进程时更新选项卡标题,例如:
# title is currently "bash"
$ find / -name foo # while searching for foo, title is "find"
$ # title is once again "bash"
$ less /proc/cpuinfo # title changes to "less"
$ man ls # title changes to man
$ # title returns to "bash"
Run Code Online (Sandbox Code Playgroud)