
1 jjgod 2014 年 1 月 17 日 open 就是用 Finder 设置的 LaunchServices 默认打开程序打开。man open 列出了一些其他的打开方式,比如 -a / -b 用指定的程序打开,-e 用 TextEdit 打开,-t 用默认的文本编辑器打开。 |
2 11 2014 年 1 月 17 日 $ ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime $ sublime FILENAME |
3 FrankFang128 2014 年 1 月 17 日 via Android 你百度都能百度到啊 mac 默认打开方式。 |
4 hewigovens 2014 年 1 月 17 日 以txt为例, 在Finder理选择一个txt文件, 右键Get Info->Open With->Sublime->Change All, 下次你命令行直接open txt就可以用sublime打开了 |
5 chevalier 2014 年 1 月 17 日 http://macshuo.com/?p=676 配置那一段,在zsh里面设置命令行打开文件的程序 |
6 chevalier 2014 年 1 月 17 日 alias -s html=mate,意思就是你在命令行输入 hello.html,zsh会为你自动打开 TextMat 并读取 hello.html; alias -s gz='tar -xzvf',表示自动解压后缀为 gz 的压缩包。 |
7 hilenlai 2014 年 1 月 17 日 @11 已感谢,不过2的话是 ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime |
8 laiqs2011 OP 赞~感谢各位! |