mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
sublime: ignore wslpath errors if C drive is missing
This commit is contained in:
@@ -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=(
|
||||||
|
|||||||
Reference in New Issue
Block a user