Skip to content

Instantly share code, notes, and snippets.

@ronanmccoy
Last active September 15, 2018 21:41
Show Gist options
  • Save ronanmccoy/25ad2529a47b0370f4c72cfa98629240 to your computer and use it in GitHub Desktop.
Save ronanmccoy/25ad2529a47b0370f4c72cfa98629240 to your computer and use it in GitHub Desktop.
Open a file in sublime text 3 from terminal
/**
*
* The following is specific to macOS
*
*/
// Create symbolic link with the alias 'subl'.
$: ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
// Use from terminal as follows:
// $: subl file_to_open.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment