About The Author

Your Startup Sucks

& OTHER HAPPY THOUGHTS
Fighting cynicism through sarcasm, one quibble at a time.

Recent comments

  • July 13, 2011 1:45 pm

    Saved Windows with GNU Screen

    I seem to have a certain affinity for obscene numbers of local screen windows. Rather than do all my development remotely or in a VM, I’ve put together a simple little hack so I can get back to work with a minimum of ^A-c.

    The script allows you to quickly re-open any number of screen windows, grouped by name. You tell the script what to do using a simple configuration file consisting of multiple sections delineated by psuedo-tags, each containing a list of commands to run in separate screen windows.

    For instance,

    <design>
      vim -o pretty.css -o index.html -c 'vsplit ugly.js'
      emacs just.html kidding.html
      compass watch
    </design> 

    # here's a comment; incidentally, blank lines are okay too. 

    <debug>
      vim -o lol.asm pwn.c
      vim some-other-file.c
    ./run-server local
    </debug> 

    To spawn screen with the requested windows, simply chant:

    ./work.bash debug

    And that’s it.