Makes fzf list packages for paru on tab

master
Jonathan Hodgson 6 months ago
parent 15d3876c04
commit 9d4e340753
  1. 2
      shells/zsh/includes/overidepartialcompletion.zsh

@ -39,7 +39,7 @@ overidecomplete(){
if [ "${LBUFFER[-1]}" = " " ]; then
case "$cmd" in
# Pacman and yay have almost the same syntac so for simplicities sake, treat them the same
pacman|yay)
pacman|yay|paru)
case "$lastWord" in
# If I want to install something, give a list of things to install
-S) toadd="$($cmd -Slq | fzf -m --preview "$cmd -Si {1}" | tr '\n' ' ')"; ret=0 ;;

Loading…
Cancel
Save