Launch Sublime Text 3 from the command line & simlink to SublWritten by Alex Tuesday, 04 December 2018 08:50
These instructions assume you’re using the Terminal app out of the box, without ZSH or any fancy prompts like that. I trust you will be able to adapt these instructions yourself if you do.
Step 1 : Create a symlink called sublime
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
Step 2 : Check that your system profile can find the symlink you just created.
Step 3 : Add both these lines & then save the file :
alias subl="open -a /Applications/Sublime\ Text.app" export PATH=/usr/local/bin:$PATH
Step 4 : Reload your bash_profile :
Done ! You can now navigate to any of your code/script folders in Terminal and open them in Sublime with the following commands :
subl . subl .zshrc
Latest from Alex
- How to make current window screenshot in Mac
- Cracking the Cultural interview. How to pass culture-fit test in Google, Amazon, FB.
- How to Stop .DS_Store File Creation on Network Volumes in Mac OS X
- Customize OS X's Login Screen with Any Logo You Want
- Git: Fix warning: unable to access '/.config/git/ignore': Permission denied