我正在尝试创建一个启动脚本来在 Guake 中打开两个选项卡,执行命令,然后重命名选项卡。不幸的是,这些选项卡没有被重命名。同样令人恼火的是,它在 shell 脚本的目录而不是默认的 ~/ 目录中打开终端。阅读帮助文件后,我很确定该脚本是正确的。
帮助文件:
Options:
-h, --help show this help message and exit
-f, --fullscreen Put Guake in fullscreen mode
-t, --toggle-visibility
Toggles the visibility of the terminal window
-p, --preferences Shows Guake preference window
-a, --about Shows Guake's about info
-n NEW_TAB, --new-tab=NEW_TAB
Add a new tab
-s SELECT_TAB, --select-tab=SELECT_TAB
Select a tab
-g, --selected-tab Return the selectd tab index.
-e COMMAND, --execute-command=COMMAND
Execute an arbitrary command in the selected tab.
-r RENAME_TAB, --rename-tab=RENAME_TAB
Rename …Run Code Online (Sandbox Code Playgroud)