mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
Merge 958e5a2686 into be5bff2e86
This commit is contained in:
commit
4cf5ed0763
1 changed files with 17 additions and 0 deletions
|
|
@ -54,6 +54,23 @@ elif [[ "$OSTYPE" = 'cygwin' ]]; then
|
|||
break
|
||||
fi
|
||||
done
|
||||
|
||||
elif [[ $('uname') =~ 'CYGWIN' ]]; then
|
||||
|
||||
local _sublime_cygwin_paths > /dev/null 2>&1
|
||||
_sublime_cygwin_paths=(
|
||||
"/cygdrive/c/Program Files/Sublime Text 3/sublime_text.exe"
|
||||
"/cygdrive/c/Program Files/Sublime Text 2/sublime_text.exe"
|
||||
)
|
||||
|
||||
for _sublime_path in $_sublime_darwin_paths; do
|
||||
if [[ -a $_sublime_path ]]; then
|
||||
alias subl="'$_sublime_path'"
|
||||
alias st=subl
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
fi
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue