mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Added path and shortcut for Cygwin and Sublime Text
This commit is contained in:
parent
5728a5608d
commit
958e5a2686
1 changed files with 17 additions and 0 deletions
|
|
@ -36,6 +36,23 @@ elif [[ $('uname') == 'Darwin' ]]; 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
|
||||
|
||||
alias stt='st .'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue