Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
cea941ce
Commit
cea941ce
authored
Jun 23, 2015
by
Andrew Janke
Committed by
Marc Cornellà
Apr 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sublime plugin: make "local" work by wrapping in anon function
parent
64cd002b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
sublime.plugin.zsh
plugins/sublime/sublime.plugin.zsh
+10
-7
No files found.
plugins/sublime/sublime.plugin.zsh
View file @
cea941ce
# Sublime Text Aliases
()
{
if
[[
"
$OSTYPE
"
==
linux
*
]]
;
then
local
_sublime_linux_paths
>
/dev/null 2>&1
local
_sublime_linux_paths
_sublime_path
_sublime_linux_paths
=(
"
$HOME
/bin/sublime_text"
"/opt/sublime_text/sublime_text"
...
...
@@ -19,9 +23,8 @@ if [[ "$OSTYPE" == linux* ]]; then
break
fi
done
elif
[[
"
$OSTYPE
"
=
darwin
*
]]
;
then
local
_sublime_darwin_paths
>
/dev/null 2>&1
local
_sublime_darwin_paths
_sublime_path
_sublime_darwin_paths
=(
"/usr/local/bin/subl"
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
...
...
@@ -38,10 +41,9 @@ elif [[ "$OSTYPE" = darwin* ]]; then
break
fi
done
elif
[[
"
$OSTYPE
"
=
'cygwin'
]]
;
then
local
_sublime_cygwin_paths
>
/dev/null 2>&1
_
sublime_cygwin_paths
=(
local
sublime_cygwin_paths _sublime_path
sublime_cygwin_paths
=(
"
$(
cygpath
$ProgramW6432
/Sublime
\
Text
\
2
)
/sublime_text.exe"
"
$(
cygpath
$ProgramW6432
/Sublime
\
Text
\
3
)
/sublime_text.exe"
)
...
...
@@ -52,9 +54,10 @@ elif [[ "$OSTYPE" = 'cygwin' ]]; then
break
fi
done
fi
}
alias
stt
=
'st .'
find_project
()
...
...
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