Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

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

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

1 Answer 1

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.