zsgh-wrapper.sh 307 Bytes
Newer Older
trappn's avatar
trappn committed
1
#!/bin/sh
2
osascript -- - "$1" "$2" <<'EOF'
trappn's avatar
trappn committed
3
4
5
6
7
  on run(argv)
    #return display notification item 1 of argv
    tell application "Terminal"
      reopen
      activate
8
      do script "cd " & quoted form of (item 1 of argv) & ";zsgh " & quoted form of (item 2 of argv) in window 1
trappn's avatar
trappn committed
9
10
11
12
    end tell
  end run
EOF