如何从Mac OS终端创建文件并以崇高的方式打开?
如何从Mac OS终端创建文件并以崇高的方式打开?但是不是在新的崇高窗口中,而是在一个已经打开的崇高的新标签中? 示例:
touch filename.js -a 'Sublime Text' $_
是否可以在此处添加任何标志或参数?
How to create a file from the Mac OS terminal and open it in sublime? But not in a new sublime window, but in a new tab, in an already open sublime?
Example:
touch filename.js -a 'Sublime Text' $_
Is there any flag or argument that can be added here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要做的一切(假设您在
$ path
中具有subl
helper脚本)是typesubl filename.ext
ext 和Sublime Text它在当前活跃的窗口中。您根本不需要调用touch
。注意:这将适用于任何操作系统。
All you need to do (assuming you have the
subl
helper script in your$PATH
) is typesubl filename.ext
and Sublime Text will open it in the currently-active window. You don't need to calltouch
at all.Note: this will work on any OS.