cheat sheets.

$ cheat terminitor
setup 'echo "setup"'   # code to run during setup

# open a tab in current window with these commands
tab "echo 'default'", "echo 'default tab'"

window do
  before { run 'cd /path' } # run this command before each command.

  run 'padrino start' # run in new window

  tab "echo 'first tab'", "echo 'of window'" # create a new tab in window and
  run it.

  tab "named tab" do
    run "echo 'named tab'"
    run "ls"
  end
end

tab "echo 'hi'", "gitx"

tab do
  run "echo 'hi'"
  run "mate ."
end

window do

  run "whoami"    # Runs the command in the current window.

  tab "echo 'hi'" # Creates another tab
  tab "mate ."    # And another

  tab do          # Last hoorah
    run "open http://www.google.com"
  end
end

before { run "cd /path" } # execute this command before other commands in the
default window
  run "whoami"
tab 'uptime'

# In this instance, "cd /path" wil be executed in the default window before
'whoami'
# and also in the tab before 'uptime'.
# You can also use this inside a specific window context:

window do
  before 'cd /tmp'
  run 'watchr test.watchr' # "cd /tmp" first than run watchr

  tab do
    run 'padrino start' # "cd /tmp" is ran beforehand and then padrino start is
    executed
  end
end

setup do
  run "echo 'hi'"
  run "bundle install"
  run 'git remote add upstream git://github.com/achiu/terminitor.git'
end

tab :name => "named tab", :settings => "Grass" do
  run "echo 'named tab'"
  run "ls"
end
Version 1, updated 432 days ago.
. o 0 ( edit | history )
( add new | see all )