Core

/bin/workspace.sh (592 B)

 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/osascript
tell application "iTerm2"
set lwin to current session of current tab of current window
set lwidth to columns of lwin
tell lwin
write text "cd ~/go/src/{{{ .SourceTrimmed }}}"
write text "clear"
write text "bin/dev.sh"
split vertically with default profile
set columns of lwin to lwidth - 52
end tell
set rwin to second session of current tab of current window
tell rwin
write text "cd ~/go/src/{{{ .SourceTrimmed }}}/client"
write text "clear"
write text "../bin/build/client-watch.sh"
set columns of rwin to 51
end tell
end tell