mirror of https://git.decapod.one/brethil/dotfiles
zsh: add pacman module
parent
51f92885fe
commit
b96f0a6f86
|
@ -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