Makes fzf list packages for paru on tab

master
Jonathan Hodgson 3 years ago
parent e474335aae
commit 063ffb3da2
  1. 2
      shells/zsh/includes/overidepartialcompletion.zsh

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

Loading…
Cancel
Save