mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-21 19:11:30 +01:00
zsh: add pacman module
This commit is contained in:
parent
51f92885fe
commit
b96f0a6f86
9
functions/pacman.zsh
Normal file
9
functions/pacman.zsh
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
if ! command -v pacman &>/dev/null; then return; fi
|
||||||
|
|
||||||
|
function pacpreview() {
|
||||||
|
if ! command -v fzf &>/dev/null; then
|
||||||
|
echo "Requires fzf! Quitting"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
pacman -Slq | fzf --multi --preview 'grc --colour=on pacman -Si {1}' | xargs -ro sudo pacman -S
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user