Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
cf5ccf06
Unverified
Commit
cf5ccf06
authored
Apr 23, 2018
by
Marc Cornellà
Committed by
GitHub
Apr 23, 2018
Browse files
[subl] Fix local variable definition
Fixes #6757
parent
604f580f
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/sublime/sublime.plugin.zsh
View file @
cf5ccf06
...
...
@@ -3,7 +3,7 @@
()
{
if
[[
"
$OSTYPE
"
==
linux
*
]]
;
then
local
_sublime_linux_paths
_sublime_path
local
_sublime_linux_paths
_sublime_linux_paths
=(
"
$HOME
/bin/sublime_text"
"/opt/sublime_text/sublime_text"
...
...
@@ -24,7 +24,7 @@ if [[ "$OSTYPE" == linux* ]]; then
fi
done
elif
[[
"
$OSTYPE
"
=
darwin
*
]]
;
then
local
_sublime_darwin_paths
_sublime_path
local
_sublime_darwin_paths
_sublime_darwin_paths
=(
"/usr/local/bin/subl"
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
...
...
@@ -42,7 +42,7 @@ elif [[ "$OSTYPE" = darwin* ]]; then
fi
done
elif
[[
"
$OSTYPE
"
=
'cygwin'
]]
;
then
local
sublime_cygwin_paths
_sublime_path
local
sublime_cygwin_paths
sublime_cygwin_paths
=(
"
$(
cygpath
$ProgramW6432
/Sublime
\
Text
\
2
)
/sublime_text.exe"
"
$(
cygpath
$ProgramW6432
/Sublime
\
Text
\
3
)
/sublime_text.exe"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment