Skip to content

Instantly share code, notes, and snippets.

@tangoabcdelta
Last active January 4, 2021 10:26
Show Gist options
  • Save tangoabcdelta/4803b8176e1d73d7e4cefe9e0c6e276c to your computer and use it in GitHub Desktop.
Save tangoabcdelta/4803b8176e1d73d7e4cefe9e0c6e276c to your computer and use it in GitHub Desktop.
sublime and bash
# Launch sublime from bash command line

ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl

Usage: subl [arguments] [files]         edit the given files
   or: subl [arguments] [directories]   open the given directories
   or: subl [arguments] -               edit stdin



# warning: this will move your editor from 
export EDITOR='subl -w'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment