Sha256: 42a0b57e19f62f179828a65f249af5deed2fdd4d4160ac0cd1c1e558e43f81a8

Contents?: true

Size: 488 Bytes

Versions: 1

Compression:

Stored size: 488 Bytes

Contents

tell application "iTerm"
  activate
  create window with default profile
  tell current window
    <%- tabs.each_with_index do |tab, index| -%>
    <%- unless index.zero? %>
    create tab with default profile
    <%- end -%>
    tell current session
      set name to "<%= escape tab.name %>"
      write text "cd <%= escape root %>"
      <%- tab.commands.each do |command| -%>
      write text "<%= escape command %>"
      <%- end -%>
    end tell
    <%- end -%>
  end tell
end tell

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
autoterm-0.2.0 lib/autoterm/assets/applescript.erb