Обновление ohmyzsh
This commit is contained in:
@@ -15,10 +15,10 @@ alias stn=create_project
|
||||
declare -a _sublime_paths
|
||||
|
||||
if [[ "$OSTYPE" == linux* ]]; then
|
||||
if [[ "$(uname -r)" = *Microsoft* ]]; then
|
||||
if [[ "$(uname -r)" = *icrosoft* ]]; then
|
||||
_sublime_paths=(
|
||||
"$(wslpath -u 'C:\Program Files\Sublime Text 3\subl.exe')"
|
||||
"$(wslpath -u 'C:\Program Files\Sublime Text 2\subl.exe')"
|
||||
"$(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)"
|
||||
)
|
||||
else
|
||||
_sublime_paths=(
|
||||
@@ -29,15 +29,19 @@ alias stn=create_project
|
||||
"/usr/local/bin/sublime_text"
|
||||
"/usr/bin/subl"
|
||||
"/usr/bin/subl3"
|
||||
"/snap/bin/subl"
|
||||
"/snap/bin/sublime-text.subl"
|
||||
)
|
||||
fi
|
||||
elif [[ "$OSTYPE" = darwin* ]]; then
|
||||
_sublime_paths=(
|
||||
"/usr/local/bin/subl"
|
||||
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
|
||||
"/Applications/Sublime Text 4.app/Contents/SharedSupport/bin/subl"
|
||||
"/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl"
|
||||
"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
|
||||
"$HOME/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
|
||||
"$HOME/Applications/Sublime Text 4.app/Contents/SharedSupport/bin/subl"
|
||||
"$HOME/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl"
|
||||
"$HOME/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user