Xtools icon indicating copy to clipboard operation
Xtools copied to clipboard

mac下如何调用iterm2

Open Alluresec opened this issue 1 year ago • 2 comments

Alluresec avatar Jun 19 '24 00:06 Alluresec

师傅,mac下如何调用iterm2,而不是自带的终端啊

Alluresec avatar Jun 19 '24 00:06 Alluresec

如果需要调用 iterm2,修改 utils.py 文件的247行代码,修改完成后,重启 Sublime Text

# 注释
# tell.app('Terminal','do script"{cmd}"'.format(cmd=cmd),background=True)

# 改为
tell.app('iTerm','set newWindow to (create window with default profile)\ntell current session of newWindow\nwrite text "{cmd}"\nend tell'.format(cmd=cmd))
image

chasingboy avatar Jun 19 '24 08:06 chasingboy