Created
February 24, 2016 01:44
-
-
Save sayak-sarkar/94b2131ec37d1b2442fa to your computer and use it in GitHub Desktop.
Script to migrate ST2 installation to subl2 from subl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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