Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I usually have tons of tabs open in terminal sessions and every time I open a new terminal I have to manually open up all tabs. This is pretty annoying.

I checked man xfce4-terminal but it didn't say anything about saving a session. Is this possible?

share|improve this question
    
An alternative would be to create a custom launcher that opens all the tabs with places that you wanted. This assumes you always want the same locations – Keith Sep 8 '12 at 0:02
    
That sounds doable. How would I do that? Would you happen to know any howtos/tutorials? – c00kiemonster Sep 8 '12 at 0:22
up vote 3 down vote accepted

You can create a shortcut with pre-defined tabs like this:

Terminal --geometry=100x40 --hide-menubar --hide-toolbars -T "Host1" -e "ssh -t root@host1" --tab -T "Host2" -e "ssh -t root@host2"

But something like that in the Command line of the shortcut editor dialog.

To have each tab have a different working directory you can do it this way:

Terminal --working-directory=$HOME/tmp --tab --working-directory=$HOME/src --tab --working-directory=$HOME/opt

Not that the first one doesn't have a --tab before it, making it associate with the new top-level window. Then two additional tabs with different working directories.

Try to avoid using ~ expansion, as that is a shell feature that may not work in other context (such as custom launchers).

share|improve this answer
    
How could I open one new terminal window with let's say three tabs showing three different directories (~/myuser/code, ~/myuser/logs, ~/myuser/backup)? Perhaps I have misunderstood the meaning of working-directory, but I thought that would do the trick but I can't get it to work... – c00kiemonster Sep 15 '12 at 4:01
    
Thanks much for the edit. Turns out $HOME was the piece I was missing, works as advertised now. – c00kiemonster Sep 15 '12 at 23:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .