Skip to content

Instantly share code, notes, and snippets.

@barseghyanartur
Last active February 7, 2024 08:55
Show Gist options
  • Save barseghyanartur/6656fdd4f69cd59035dc82a9878a8b31 to your computer and use it in GitHub Desktop.
Save barseghyanartur/6656fdd4f69cd59035dc82a9878a8b31 to your computer and use it in GitHub Desktop.
Open SublimeText from macOs terminal the same way you would do it on Linux

Open SublimeText from macOs terminal the same way you would do it on Linux

  1. Create a sym-link:

    ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /Users/me/.local/bin/subl
  2. Open a file:

    subl /path/to/the/file.ext
  3. Open a directory:

    subl /path/to/the/directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment