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
e38099de
Commit
e38099de
authored
Oct 02, 2019
by
Marc Cornellà
Browse files
sublime: ignore wslpath errors if C drive is missing
parent
bf0cf4eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/sublime/sublime.plugin.zsh
View file @
e38099de
...
@@ -17,8 +17,8 @@ alias stn=create_project
...
@@ -17,8 +17,8 @@ alias stn=create_project
if
[[
"
$OSTYPE
"
==
linux
*
]]
;
then
if
[[
"
$OSTYPE
"
==
linux
*
]]
;
then
if
[[
"
$(
uname
-r
)
"
=
*
icrosoft
*
]]
;
then
if
[[
"
$(
uname
-r
)
"
=
*
icrosoft
*
]]
;
then
_sublime_paths
=(
_sublime_paths
=(
"
$(
wslpath
-u
'C:\Program Files\Sublime Text 3\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'
)
"
"
$(
wslpath
-u
'C:\Program Files\Sublime Text 2\subl.exe'
2>/dev/null
)
"
)
)
else
else
_sublime_paths
=(
_sublime_paths
=(
...
...
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