Skip to content

Instantly share code, notes, and snippets.

@sayak-sarkar
Created February 24, 2016 01:44
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 sayak-sarkar/94b2131ec37d1b2442fa to your computer and use it in GitHub Desktop.
Save sayak-sarkar/94b2131ec37d1b2442fa to your computer and use it in GitHub Desktop.
Script to migrate ST2 installation to subl2 from subl
SCRIPT="#!/bin/sh
if [ \${1} == \"--help\" ]; then
/usr/local/sublime-text-2/sublime_text --help
else
/usr/local/sublime-text-2/sublime_text \$@ > /dev/null 2>&1 &
fi"
echo "${SCRIPT}" > "/usr/local/bin/subl2"
chmod +x "/usr/local/bin/subl2"
ln -s /usr/local/sublime-text-2/sublime_text /usr/bin/sublime-text2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment