Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
cea89f54
Unverified
Commit
cea89f54
authored
Jun 23, 2020
by
Magnus Boman
Committed by
GitHub
Jun 23, 2020
Browse files
archlinux: fix pacweb breaking when multiple packages found (#9059)
Co-authored-by:
Magnus Boman
<
Kattus@users.noreply.github.com
>
parent
b706a919
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/archlinux/archlinux.plugin.zsh
View file @
cea89f54
...
...
@@ -212,8 +212,8 @@ if (( $+commands[xdg-open] )); then
if
[[
-z
"
$infos
"
]]
;
then
return
fi
repo
=
"
$(
grep
'^Repo'
<<<
"
$infos
"
|
grep
-oP
'[^ ]+$'
)
"
arch
=
"
$(
grep
'^Arch'
<<<
"
$infos
"
|
grep
-oP
'[^ ]+$'
)
"
repo
=
"
$(
grep
-m
1
'^Repo'
<<<
"
$infos
"
|
grep
-oP
'[^ ]+$'
)
"
arch
=
"
$(
grep
-m
1
'^Arch'
<<<
"
$infos
"
|
grep
-oP
'[^ ]+$'
)
"
xdg-open
"https://www.archlinux.org/packages/
$repo
/
$arch
/
$pkg
/"
&>/dev/null
}
fi
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