https://segmentfault.com/q/1010000002675510
-n or --new-window: Open a new window
-a or --add: Add folders to the current window
-w or --wait: Wait for the files to be closed before returning
-b or --background: Don't activate the application
-s or --stay: Keep the application activated after closing the file
-h or --help: Show help (this message) and exit
-v or --version: Show version and exit
subl 配置
https://segmentfault.com/q/1010000003848398
設置subl命令行:sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
成功。
sudo ln -s "/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" /usr/bin/subl
報錯:ln: /usr/bin/subl: Operation not permitted 首尼。估計是權限問題挑庶,不建議改權限了。尼瑪软能,改權限迎捺,做過大死。
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl
報錯:這句顯然不對查排,~下有bin嗎凳枝?求問大神。
sublimetext官網的說法:
https://www.sublimetext.com/docs/3/osx_command_line.html
The first task is to make a symlink to subl
. Assuming you've placed Sublime Text in the Applications folder, and that you have a ~/bin
directory in your path, you can run:
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl
ps:注意人家說了跋核,you have a ~/bin岖瑰,要是木有,