brady-wang

如果文件已被指定默认程序

open httpd.conf

 

指定一个特定程序打开文件

# 用 sublime text 打开 httpd.conf
open -a /Applications/Sublime\ Text.app/ httpd.conf

如果使用频繁,还可以添加软连接

sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/bin/sublime

 

输入sublime就可以打开 sublime text
输入sublime httpd.conf就可以用 sublime text 打开文件

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
  • 2022-01-18
  • 2021-08-02
  • 2021-06-05
猜你喜欢
  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
  • 2021-07-15
  • 2021-05-29
  • 2021-11-29
相关资源
相似解决方案