Guake终端启动shell脚本

bre*_*ent 2 shell terminal

我正在尝试创建一个启动脚本来在 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 the selected tab.
  -q, --quit            Says to Guake go away =(
Run Code Online (Sandbox Code Playgroud)

这是我的 shell 脚本:

#!/bin/sh
# guakeStartup.sh

# open tabs
guake -e "irssi" -r "irssi"
guake -n -e "cd" -r "terminal"
Run Code Online (Sandbox Code Playgroud)

Uti*_*unt 5

在启动脚本中尝试这样操作:

guake --rename-tab="irssi" --execute-command="irssi" &
sleep 1 &&
guake --new-tab=2 --rename-tab="terminal" --execute-command="cd" &
Run Code Online (Sandbox Code Playgroud)

或者更像你原来的:

guake -e "irssi" -r "irssi" &
sleep 1 &&
guake -n=2 -e "cd" -r "terminal" &
Run Code Online (Sandbox Code Playgroud)