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
Oh My Zsh
Commits
897a7da6
Commit
897a7da6
authored
Apr 22, 2018
by
Marc Cornellà
Browse files
Merge branch 'heads/apjanke/fix-local-in-sublime-plugin'
Closes #4086
parents
64cd002b
cea941ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/sublime/sublime.plugin.zsh
View file @
897a7da6
# Sublime Text Aliases
()
{
if
[[
"
$OSTYPE
"
==
linux
*
]]
;
then
if
[[
"
$OSTYPE
"
==
linux
*
]]
;
then
local
_sublime_linux_paths
>
/dev/null 2>&1
local
_sublime_linux_paths
_sublime_path
_sublime_linux_paths
=(
_sublime_linux_paths
=(
"
$HOME
/bin/sublime_text"
"
$HOME
/bin/sublime_text"
"/opt/sublime_text/sublime_text"
"/opt/sublime_text/sublime_text"
...
@@ -19,9 +23,8 @@ if [[ "$OSTYPE" == linux* ]]; then
...
@@ -19,9 +23,8 @@ if [[ "$OSTYPE" == linux* ]]; then
break
break
fi
fi
done
done
elif
[[
"
$OSTYPE
"
=
darwin
*
]]
;
then
elif
[[
"
$OSTYPE
"
=
darwin
*
]]
;
then
local
_sublime_darwin_paths
>
/dev/null 2>&1
local
_sublime_darwin_paths
_sublime_path
_sublime_darwin_paths
=(
_sublime_darwin_paths
=(
"/usr/local/bin/subl"
"/usr/local/bin/subl"
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
...
@@ -38,10 +41,9 @@ elif [[ "$OSTYPE" = darwin* ]]; then
...
@@ -38,10 +41,9 @@ elif [[ "$OSTYPE" = darwin* ]]; then
break
break
fi
fi
done
done
elif
[[
"
$OSTYPE
"
=
'cygwin'
]]
;
then
elif
[[
"
$OSTYPE
"
=
'cygwin'
]]
;
then
local
_
sublime_cygwin_paths
>
/dev/null 2>&1
local
sublime_cygwin_paths
_sublime_path
_
sublime_cygwin_paths
=(
sublime_cygwin_paths
=(
"
$(
cygpath
$ProgramW6432
/Sublime
\
Text
\
2
)
/sublime_text.exe"
"
$(
cygpath
$ProgramW6432
/Sublime
\
Text
\
2
)
/sublime_text.exe"
"
$(
cygpath
$ProgramW6432
/Sublime
\
Text
\
3
)
/sublime_text.exe"
"
$(
cygpath
$ProgramW6432
/Sublime
\
Text
\
3
)
/sublime_text.exe"
)
)
...
@@ -52,9 +54,10 @@ elif [[ "$OSTYPE" = 'cygwin' ]]; then
...
@@ -52,9 +54,10 @@ elif [[ "$OSTYPE" = 'cygwin' ]]; then
break
break
fi
fi
done
done
fi
fi
}
alias
stt
=
'st .'
alias
stt
=
'st .'
find_project
()
find_project
()
...
...
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