Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
07f08aa7
Commit
07f08aa7
authored
Sep 24, 2015
by
Tyler Charlesworth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds Cygwin support
parent
76a26a2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
sublime.plugin.zsh
plugins/sublime/sublime.plugin.zsh
+14
-3
No files found.
plugins/sublime/sublime.plugin.zsh
View file @
07f08aa7
# Sublime Text 2 Aliases
if
[[
$(
'uname'
)
==
'Linux'
]]
;
then
if
[[
$(
'uname'
)
==
'Linux'
]]
;
then
local
_sublime_linux_paths
>
/dev/null 2>&1
local
_sublime_linux_paths
>
/dev/null 2>&1
_sublime_linux_paths
=(
_sublime_linux_paths
=(
...
@@ -33,7 +31,6 @@ elif [[ "$OSTYPE" = darwin* ]]; then
...
@@ -33,7 +31,6 @@ elif [[ "$OSTYPE" = darwin* ]]; then
"
$HOME
/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl"
"
$HOME
/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl"
"
$HOME
/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
"
$HOME
/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
)
)
for
_sublime_path
in
$_sublime_darwin_paths
;
do
for
_sublime_path
in
$_sublime_darwin_paths
;
do
if
[[
-a
$_sublime_path
]]
;
then
if
[[
-a
$_sublime_path
]]
;
then
subl
()
{
"
$_sublime_path
"
$*
}
subl
()
{
"
$_sublime_path
"
$*
}
...
@@ -43,4 +40,18 @@ elif [[ "$OSTYPE" = darwin* ]]; then
...
@@ -43,4 +40,18 @@ elif [[ "$OSTYPE" = darwin* ]]; then
done
done
fi
fi
elif
[[
"
$OSTYPE
"
=
'cygwin'
]]
;
then
local
_sublime_cygwin_paths
>
/dev/null 2>&1
_sublime_cygwin_paths
=(
"
$(
cygpath
$ProgramW6432
/Sublime
\
Text
\
2
)
/sublime_text.exe"
"
$(
cygpath
$ProgramW6432
/Sublime
\
Text
\
3
)
/sublime_text.exe"
)
for
_sublime_path
in
$_sublime_cygwin_paths
;
do
if
[[
-a
$_sublime_path
]]
;
then
subl
()
{
"
$_sublime_path
"
$*
}
alias
st
=
subl
break
fi
done
alias
stt
=
'st .'
alias
stt
=
'st .'
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