mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-08-14 00:48:39 +02:00
frontend: add frontend search commands (#7863)
This commit is contained in:
committed by
Marc Cornellà
parent
9598a855fa
commit
8d4d766bac
@ -1,25 +1,31 @@
|
||||
alias angular='frontend angular'
|
||||
alias angularjs='frontend angularjs'
|
||||
alias aurajs='frontend aurajs'
|
||||
alias bem='frontend bem'
|
||||
alias bootsnipp='frontend bootsnipp'
|
||||
alias bundlephobia='frontend bundlephobia'
|
||||
alias caniuse='frontend caniuse'
|
||||
alias codepen='frontend codepen'
|
||||
alias compassdoc='frontend compassdoc'
|
||||
alias cssflow='frontend cssflow'
|
||||
alias dartlang='frontend dartlang'
|
||||
alias emberjs='frontend emberjs'
|
||||
alias flowtype='frontend flowtype'
|
||||
alias fontello='frontend fontello'
|
||||
alias github='frontend github'
|
||||
alias html5please='frontend html5please'
|
||||
alias jestjs='frontend jestjs'
|
||||
alias jquery='frontend jquery'
|
||||
alias lodash='frontend lodash'
|
||||
alias mdn='frontend mdn'
|
||||
alias nodejs='frontend nodejs'
|
||||
alias npmjs='frontend npmjs'
|
||||
alias qunit='frontend qunit'
|
||||
alias reactjs='frontend reactjs'
|
||||
alias smacss='frontend smacss'
|
||||
alias stackoverflow='frontend stackoverflow'
|
||||
alias typescript='frontend typescript'
|
||||
alias unheap='frontend unheap'
|
||||
alias vuejs='frontend vuejs'
|
||||
|
||||
function frontend() {
|
||||
emulate -L zsh
|
||||
@ -29,26 +35,32 @@ function frontend() {
|
||||
urls=(
|
||||
angular 'https://angular.io/?search='
|
||||
angularjs 'https://google.com/search?as_sitesearch=angularjs.org&as_q='
|
||||
aurajs 'http://aurajs.com/api/#stq='
|
||||
bem 'https://google.com/search?as_sitesearch=bem.info&as_q='
|
||||
bootsnipp 'https://bootsnipp.com/search?q='
|
||||
bundlephobia 'https://bundlephobia.com/result?p='
|
||||
caniuse 'https://caniuse.com/#search='
|
||||
codepen 'https://codepen.io/search?q='
|
||||
compassdoc 'http://compass-style.org/search?q='
|
||||
cssflow 'http://www.cssflow.com/search?q='
|
||||
dartlang 'https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:'
|
||||
emberjs 'https://emberjs.com/api/#stp=1&stq='
|
||||
emberjs 'https://www.google.com/search?as_sitesearch=emberjs.com/&as_q='
|
||||
flowtype 'https://google.com/search?as_sitesearch=flow.org/en/docs/&as_q='
|
||||
fontello 'http://fontello.com/#search='
|
||||
html5please 'http://html5please.com/#'
|
||||
github 'https://github.com/search?q='
|
||||
html5please 'https://html5please.com/#'
|
||||
jestjs 'https://www.google.com/search?as_sitesearch=jestjs.io&as_q='
|
||||
jquery 'https://api.jquery.com/?s='
|
||||
lodash 'https://devdocs.io/lodash/index#'
|
||||
mdn 'https://developer.mozilla.org/search?q='
|
||||
nodejs 'https://www.google.com/search?as_sitesearch=nodejs.org/en/docs/&as_q='
|
||||
npmjs 'https://www.npmjs.com/search?q='
|
||||
qunit 'https://api.qunitjs.com/?s='
|
||||
reactjs 'https://google.com/search?as_sitesearch=facebook.github.io/react&as_q='
|
||||
smacss 'https://google.com/search?as_sitesearch=smacss.com&as_q='
|
||||
stackoverflow 'https://stackoverflow.com/search?q='
|
||||
typescript 'https://google.com/search?as_sitesearch=www.typescriptlang.org/docs&as_q='
|
||||
unheap 'http://www.unheap.com/?s='
|
||||
vuejs 'https://www.google.com/search?as_sitesearch=vuejs.org&as_q='
|
||||
)
|
||||
|
||||
# show help for command list
|
||||
@ -59,9 +71,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,"
|
||||
print -P " compassdoc, cssflow, dartlang, emberjs, fontello, html5please, jquery,"
|
||||
print -P " lodash, mdn, npmjs, qunit, reactjs, smacss, stackoverflow, unheap"
|
||||
print -P " angular, angularjs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow,"
|
||||
print -P " dartlang, emberjs, fontello, flowtype, github, html5please, jestjs, jquery, lodash,"
|
||||
print -P " mdn, npmjs, nodejs, qunit, reactjs, smacss, stackoverflow, unheap, vuejs, bundlephobia"
|
||||
print -P ""
|
||||
print -P "For example: frontend npmjs mocha (or just: npmjs mocha)."
|
||||
print -P ""
|
||||
@ -75,9 +87,9 @@ function frontend() {
|
||||
echo ""
|
||||
echo "Valid contexts are:"
|
||||
echo ""
|
||||
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 " angular, angularjs, bem, bootsnipp, caniuse, codepen, compassdoc, cssflow,"
|
||||
echo " dartlang, emberjs, fontello, github, html5please, jest, jquery, lodash,"
|
||||
echo " mdn, npmjs, nodejs, qunit, reactjs, smacss, stackoverflow, unheap, vuejs, bundlephobia"
|
||||
echo ""
|
||||
return 1
|
||||
fi
|
||||
|
Reference in New Issue
Block a user