Using Ubuntu I can create a terminal with two tabs: gnome-terminal --tab --tab

However, by default it goes to the last created tab. Using Alt + 1 I can make it go to the first, but I want to avoid key presses.

I'd like to either create an alias to execute Alt + 1 in bash, or directly insert similar code: gnome-terminal --tab --tab -e "alt1"

Any ideas?

link|improve this question
feedback

migrated from stackoverflow.com Jul 4 '10 at 21:49

This question came from our site for professional and enthusiast programmers.

1 Answer

This works but it's a bit kludgey and requires xdotool:

gnome-terminal --tab --tab --tab -e 'xdotool key alt+1'
link|improve this answer
feedback

Your Answer

 
or
required, but never shown