mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-23 21:01:58 +00:00
archlinux: fix pacmanallkeys URL, make curl silent
Also make all functions local as to not spill variables into the global namespace.
This commit is contained in:
parent
98ea6414d8
commit
b90c8944b4
1 changed files with 5 additions and 1 deletions
|
@ -68,6 +68,8 @@ paclist() {
|
|||
}
|
||||
|
||||
pacdisowned() {
|
||||
emulate -L zsh
|
||||
|
||||
tmp=${TMPDIR-/tmp}/pacman-disowned-$UID-$$
|
||||
db=$tmp/db
|
||||
fs=$tmp/fs
|
||||
|
@ -84,12 +86,14 @@ pacdisowned() {
|
|||
}
|
||||
|
||||
pacmanallkeys() {
|
||||
curl https://www.archlinux.org/{developers,trustedusers}/ | \
|
||||
emulate -L zsh
|
||||
curl -s https://www.archlinux.org/people/{developers,trustedusers}/ | \
|
||||
awk -F\" '(/pgp.mit.edu/) { sub(/.*search=0x/,""); print $1}' | \
|
||||
xargs sudo pacman-key --recv-keys
|
||||
}
|
||||
|
||||
pacmansignkeys() {
|
||||
emulate -L zsh
|
||||
for key in $*; do
|
||||
sudo pacman-key --recv-keys $key
|
||||
sudo pacman-key --lsign-key $key
|
||||
|
|
Loading…
Reference in a new issue