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
21b385e7
Unverified
Commit
21b385e7
authored
Sep 02, 2021
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(frontend-search): fix codepen.io search (#10157)
Fixes #10157
parent
19032504
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
frontend-search.plugin.zsh
plugins/frontend-search/frontend-search.plugin.zsh
+5
-9
No files found.
plugins/frontend-search/frontend-search.plugin.zsh
View file @
21b385e7
...
...
@@ -29,14 +29,10 @@ alias unheap='frontend unheap'
alias
vuejs
=
'frontend vuejs'
function
_frontend_fallback
()
{
local
url
if
[[
"
$FRONTEND_SEARCH_FALLBACK
"
==
duckduckgo
]]
;
then
url
=
"https://duckduckgo.com/?sites=
$1
&q="
else
url
=
"https://google.com/search?as_sitesearch=
$1
&as_q="
fi
echo
"
$url
"
case
"
$FRONTEND_SEARCH_FALLBACK
"
in
duckduckgo
)
echo
"https://duckduckgo.com/?sites=
$1
&q="
;;
*
)
echo
"https://google.com/search?as_sitesearch=
$1
&as_q="
;;
esac
}
function
frontend
()
{
...
...
@@ -51,7 +47,7 @@ function frontend() {
bootsnipp
'https://bootsnipp.com/search?q='
bundlephobia
'https://bundlephobia.com/result?p='
caniuse
'https://caniuse.com/#search='
codepen
'https://codepen.io/search?q='
codepen
'https://codepen.io/search
/pens
?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:'
...
...
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