Antworten:
Hier ist, was ich verwende, um 4 Registerkarten zu starten, wenn ich Schienenentwicklung mache.
guake --rename-tab="Rails Server" --execute-command="cd ~/Aptana\ Studio\ 3\ Workspace/sample_app/ && rails s" &
sleep 2 &&
guake --new-tab=2 --rename-tab="Rails Test" --execute-command="cd ~/Aptana\ Studio\ 3\ Workspace/sample_app/ && 'autotest'" &
sleep 2 &&
guake --new-tab=3 --rename-tab="Rails Console" --execute-command="cd ~/Aptana\ Studio\ 3\ Workspace/sample_app/ && rails console" &
sleep 2 &&
guake --new-tab=4 --rename-tab="Rails Terminal" --execute-command="cd ~/Aptana\ Studio\ 3\ Workspace/sample_app/ && clear" &
Klappt wunderbar :)
Es ist durchaus möglich, Befehlszeilenparameter unterstützen dies.
#/bin/sh
# Just to be sure Guake is running.
# Guake handles multiple starting, won't create new instances
guake &
# Select first (0th) tab and rename it and execute something.
guake -s 0
sleep 1
guake -r "this-is-top"
sleep 1
guake -e top
sleep 1
# create a new tab in the ~ folder
guake -n ~
# rename the tab
guake -r "this-is-now-htop"
sleep 1
guake -e htop
sleep 1
guake -n ~
guake -n ~
guake -n ~
Der "Schlaf" ist für eine sichere Ausführung da, ohne dass seltsame Dinge auf meiner Maschine passiert sind, zögern Sie nicht zu experimentieren. Das Skript lief gut, entweder lief Guake bereits oder nicht.