Mac系统使用命令行快捷打开Sublime

本篇文章由:http://xinpure.com/use-command-line-shortcuts-to-open-the-mac-system-sublime/

方法一

使用软链接

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime

方法二

使用 alias

alias sublime='open -a "Sublime Text 2"'

本人偏好方法二,即简单又干净(不增加任何东西)!

原文地址:https://www.cnblogs.com/xinpureZhu/p/4215529.html