oh-my-fish/plugins/sublime/subl.fish
2014-01-07 14:18:24 -02:00

10 lines
362 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
echo "No Sublime Text installation found"
end
end