Is there a way to start screen and pass in parameters that will cause
it to split the window and run a command in each window?

To see the end result I want manually I do this:

#start screen in gnome terminal
screen

#skip welcome page if it's there with Enter

#go into split screen mode:
Ctrl + A, Shift + S

#create a second screen session
Ctrl + A, Ctrl + C

#In the top pane run
git diff

#In the bottom pane run
git commit -a

Is there a way to script ALL of those steps easily please?
(note you use Ctrl+A, <tab>) to switch between panes.

Failing that, could you do it all within vim?

run git commit -a (which opens vim) followed by :split <git diff> or
however you get a command in there?

Phill
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [EMAIL PROTECTED]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
-~----------~----~----~----~------~----~------~--~---

Reply via email to