Skip to content

Instantly share code, notes, and snippets.

@vutranvn
Created March 30, 2018 14:30
Show Gist options
  • Save vutranvn/ba668ec66e9398c6bb77ba0ac4a6bd96 to your computer and use it in GitHub Desktop.
Save vutranvn/ba668ec66e9398c6bb77ba0ac4a6bd96 to your computer and use it in GitHub Desktop.
Config open any app by terminal on macOS
sudo mkdir -p /usr/local/bin
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime
- Open ~/.bash_profile and add
export PATH=/usr/local/bin:$PATH
- Testing
sublime filename
or
sublime foldername
or
sublime . (current directory)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment