kdeng / my-blogs

Kefeng's blogs
0 stars 0 forks source link

Create symbolic link for Sublime Text 3 and VS Code. #7

Open kdeng opened 6 years ago

kdeng commented 6 years ago

Create a Sublime Text 3 symbolic link to open a file via command line, so that you can run subl . to open the directory in sublime or subl file to open a single file.

ln -sf /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl

Create a VS Code symbolic link to open a file via command line, so that you can run code . to open the directory in sublime or code file to open a single file.

ln -sf /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code /usr/local/bin/code