如何在Mac OS 命令行窗口输入命令快速打开Sublime T

2020-11-10  本文已影响0人  no1ever

Sublime Text 官网下载地址

举个例子:命令行输入 subl 打开 Sublime Text.
Jietu20201109-103113-HD.gif

1 首先在 . bash_profile 里添加一个路径链接

#打开
open  ~/.bash_profile
#添加
alias subl="'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'"
  1. 使 . bash_profile 生效
#使生效
source ~/.bash_profile

参考链接:https://www.sublimetext.com/docs/3/osx_command_line.html

上一篇 下一篇

猜你喜欢

热点阅读