mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-12-01 05:04:18 +08:00
2038421b99
Sublime Version 3 drops the version number from the application path, so if you enable this, and use 3 - the existing plugin would silently fail.
8 lines
309 B
Fish
8 lines
309 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
|
|
end
|
|
end
|