mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-31 10:46:32 +08:00
e2d8e7a04d
now it works with sublime 3 on arch linux
14 lines
554 B
Fish
14 lines
554 B
Fish
function subl --description 'Open Sublime Text'
|
|
if test -d "/Applications/Sublime Text.app"
|
|
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" $argv
|
|
else if test -d "/Applications/Sublime Text 2.app"
|
|
"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" $argv
|
|
else if test -x "/opt/sublime_text/sublime_text"
|
|
"/opt/sublime_text/sublime_text" $argv
|
|
else if test -x "/opt/sublime_text_3/sublime_text"
|
|
"/opt/sublime_text_3/sublime_text" $argv
|
|
else
|
|
echo "No Sublime Text installation found"
|
|
end
|
|
end
|