feat(sublime): add support for Sublime Text 4 on Windows (#10063)

This commit is contained in:
HoshinoArika 2021-10-06 17:01:20 +08:00 committed by GitHub
parent 69a45a9c98
commit 29b5c182be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@ alias stn=create_project
if [[ "$OSTYPE" == linux* ]]; then
if [[ "$(uname -r)" = *icrosoft* ]]; then
_sublime_paths=(
"$(wslpath -u 'C:\Program Files\Sublime Text\sublime_text.exe' 2>/dev/null)"
"$(wslpath -u 'C:\Program Files\Sublime Text 3\subl.exe' 2>/dev/null)"
"$(wslpath -u 'C:\Program Files\Sublime Text 2\subl.exe' 2>/dev/null)"
)
@ -52,6 +53,7 @@ alias stn=create_project
)
elif [[ "$OSTYPE" = msys ]]; then
_sublime_paths=(
"/c/Program Files/Sublime Text/sublime_text.exe"
"/c/Program Files/Sublime Text 2/subl.exe"
"/c/Program Files/Sublime Text 3/subl.exe"
)