Skip to content

Instantly share code, notes, and snippets.

@linktohack
Created May 28, 2015 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linktohack/017e664b97400c553766 to your computer and use it in GitHub Desktop.
Save linktohack/017e664b97400c553766 to your computer and use it in GitHub Desktop.
subl for linuxmacs
#!/bin/sh
if [ $1 = "-" ]; then
shift
TEMP=$(mktemp)
cat > $TEMP
/opt/sublime_text/sublime_text -w $TEMP "$@"
cat $TEMP
rm -rf $TEMP
else
exec /opt/sublime_text/sublime_text "$@"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment