mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
Add support for ST and ST3 installations inside ~/Applications
on OS X
This commit is contained in:
parent
b86fdeeda0
commit
d7d1ef5831
@ -3,6 +3,10 @@ function subl --description 'Open Sublime Text'
|
|||||||
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" $argv
|
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" $argv
|
||||||
else if test -d "/Applications/Sublime Text 2.app"
|
else if test -d "/Applications/Sublime Text 2.app"
|
||||||
"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" $argv
|
"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" $argv
|
||||||
|
else if test -d "$HOME/Applications/Sublime Text.app"
|
||||||
|
eval "$HOME/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" $argv
|
||||||
|
else if test -d "$HOME/Applications/Sublime Text 2.app"
|
||||||
|
eval "$HOME/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl" $argv
|
||||||
else if test -x "/opt/sublime_text/sublime_text"
|
else if test -x "/opt/sublime_text/sublime_text"
|
||||||
"/opt/sublime_text/sublime_text" $argv
|
"/opt/sublime_text/sublime_text" $argv
|
||||||
else if test -x "/opt/sublime_text_3/sublime_text"
|
else if test -x "/opt/sublime_text_3/sublime_text"
|
||||||
|
Loading…
Reference in New Issue
Block a user