Commit 6fbe5942 authored by Robby Russell's avatar Robby Russell
Browse files

Merge pull request #1391 from logicmd/master

sublime text not found in Ubuntu 
parents 03c27122 19aefa2b
...@@ -2,7 +2,11 @@ ...@@ -2,7 +2,11 @@
#unamestr = 'uname' #unamestr = 'uname'
if [[ $('uname') == 'Linux' ]]; then if [[ $('uname') == 'Linux' ]]; then
alias st='/usr/bin/sublime_text&' if [ -f '/usr/bin/sublime_text' ]; then
alias st='/usr/bin/sublime_text&'
else
alias st='/usr/bin/sublime-text&'
fi
elif [[ $('uname') == 'Darwin' ]]; then elif [[ $('uname') == 'Darwin' ]]; then
alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl' alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment