Adding /usr/bin/subl as one of Linux paths

In some Linux distributions Sublime Text 3 is installed to /usr/bin/subl.
This commit is contained in:
Matjaž Drolc 2013-10-12 19:02:05 +02:00
commit f7a1e40313

View file

@ -12,8 +12,10 @@ _sublime_darwin_paths=(
if [[ $('uname') == 'Linux' ]]; then if [[ $('uname') == 'Linux' ]]; then
if [ -f '/usr/bin/sublime_text' ]; then if [ -f '/usr/bin/sublime_text' ]; then
st_run() { nohup /usr/bin/sublime_text $@ > /dev/null & } st_run() { nohup /usr/bin/sublime_text $@ > /dev/null & }
else elif [ -f '/usr/bin/sublime-text' ]; then
st_run() { nohup /usr/bin/sublime-text $@ > /dev/null & } st_run() { nohup /usr/bin/sublime-text $@ > /dev/null & }
else
st_run() { nohup /usr/bin/subl $@ > /dev/null & }
fi fi
alias st=st_run alias st=st_run