Alfred-iTerm2

Alfred 中将iTerm2 设置成默认的terminal

  • 打开Alfred Preferences - Features - Terminal / Shell
  • 更改ApplicationCustomer
  • 替换成以下代码:
1
2
3
4
5
6
7
8
9
10
11
12
on alfred_script(q)
tell application "System Events"
tell application "iTerm2"
create window with default profile
delay 0.5
tell current session of current window
write text q
end tell
end tell
end tell

end alfred_script

👌

参考