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
63b8d652
Unverified
Commit
63b8d652
authored
May 06, 2019
by
Marc Cornellà
Committed by
GitHub
May 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add small polishing touches
parent
b3498d11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
frontend-search.plugin.zsh
plugins/frontend-search/frontend-search.plugin.zsh
+8
-7
No files found.
plugins/frontend-search/frontend-search.plugin.zsh
View file @
63b8d652
alias
angular
=
'frontend angular'
alias
angularjs
=
'frontend angularjs'
alias
aurajs
=
'frontend aurajs'
alias
bem
=
'frontend bem'
...
...
@@ -58,9 +59,9 @@ function frontend() {
print
-P
"%Uterm%u and what follows is what will be searched for in the %Ucontext%u website,"
print
-P
"and %Ucontext%u is one of the following:"
print
-P
""
print
-P
" angular (>= 2.0), angularjs (1.x), aurajs, bem, bootsnipp, caniuse, codepen,
compassdoc, cssflow,
"
print
-P
"
dartlang, emberjs, fontello, html5please, jquery, lodash, mdn, npmjs
,"
print
-P
" qunit, reactjs, smacss, stackoverflow, unheap"
print
-P
" angular (>= 2.0), angularjs (1.x), aurajs, bem, bootsnipp, caniuse, codepen,"
print
-P
"
compassdoc, cssflow, dartlang, emberjs, fontello, html5please, jquery
,"
print
-P
"
lodash, mdn, npmjs,
qunit, reactjs, smacss, stackoverflow, unheap"
print
-P
""
print
-P
"For example: frontend npmjs mocha (or just: npmjs mocha)."
print
-P
""
...
...
@@ -74,15 +75,15 @@ function frontend() {
echo
""
echo
"Valid contexts are:"
echo
""
echo
" angular (>= 2.0), angularjs (1.x), aurajs, bem, bootsnipp, caniuse, codepen,
compassdoc, cssflow,
"
echo
"
dartlang, emberjs, fontello, html5please, jquery, lodash, mdn, npmjs,
"
echo
" qunit, reactjs, smacss, stackoverflow, unheap"
echo
" angular (>= 2.0), angularjs (1.x), aurajs, bem, bootsnipp, caniuse, codepen,"
echo
"
compassdoc, cssflow, dartlang, emberjs, fontello, html5please, jquery,
"
echo
"
lodash, mdn, npmjs,
qunit, reactjs, smacss, stackoverflow, unheap"
echo
""
return
1
fi
# build search url:
# join arguments passed with '
+
', then append to search context URL
# join arguments passed with '
%20
', then append to search context URL
# TODO substitute for proper urlencode method
url
=
"
${
urls
[
$1
]
}${
(j
:%20:
)@[2,-1]
}
"
...
...
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