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.

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
add comment

1 Answer

up vote 2 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
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.