kenn / termup

Automate opening up terminal tabs (or split panes) with a set of routine commands on OSX.
http://rubygems.org/gems/termup
MIT License
26 stars 2 forks source link

Extension for comprehensive iTerm2 layouts #1

Closed berk closed 11 years ago

berk commented 11 years ago

Kenn, i love iTerm2 and your gem. But i wanted to have a more flexible layout mechanism and here is what i've done:

The layout of the yml config file changed a little:

https://github.com/berk/termup/blob/master/lib/templates/iterm2.yml

You now can set foreground, background and transparency of every tab. You can also execute layout commands after each tab's commands. Here is what you get from the default script:

http://grab.by/i3Xe

For example, if you just want to build a simple 2 by 2. It would be something like this:

https://gist.github.com/4221156

You would create this file by running:

termup create four_squares --iterm2

--iterm2 is a param that indicates that iterm2.yml layout should be used instead of your default template.

Try it out, let me know what you think.

Michael.

kenn commented 11 years ago

Interesting idea! I'll merge this and continue to work on it.