如何从Mac OS终端创建文件并以崇高的方式打开?

发布于 2025-02-06 03:33:31 字数 173 浏览 3 评论 0原文

如何从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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

唯憾梦倾城 2025-02-13 03:33:31

您需要做的一切(假设您在$ path中具有subl helper脚本)是type subl filename.ext ext 和Sublime Text它在当前活跃的窗口中。您根本不需要调用touch

注意:这将适用于任何操作系统。

All you need to do (assuming you have the subl helper script in your $PATH) is type subl filename.ext and Sublime Text will open it in the currently-active window. You don't need to call touch at all.

Note: this will work on any OS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文