簡體   English   中英

Guake終端啟動Shell腳本

[英]Guake terminal startup shell script

我正在嘗試創建一個啟動腳本,以在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 =(

這是我的shell腳本:

#!/bin/sh
# guakeStartup.sh

# open tabs
guake -e "irssi" -r "irssi"
guake -n -e "cd" -r "terminal"

在啟動腳本中嘗試以下操作:

guake --rename-tab="irssi" --execute-command="irssi" &
sleep 1 &&
guake --new-tab=2 --rename-tab="terminal" --execute-command="cd" &

或更像您的原始作品:

guake -e "irssi" -r "irssi" &
sleep 1 &&
guake -n=2 -e "cd" -r "terminal" &

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM