From a265f4e40e1ca653bcfc6d7dd7c9e34a8b153593 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Sun, 21 Mar 2021 12:59:17 +0000 Subject: [PATCH] Only show explicitly installed when tab-completing pacman -R* When tabcompleting for pacman -R*, I generally only want to show things that I've explicitly installed, rather than things that have been installed automatically as a dependency. --- shells/zsh/includes/overidepartialcompletion.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shells/zsh/includes/overidepartialcompletion.zsh b/shells/zsh/includes/overidepartialcompletion.zsh index 3d2c9d3b..a9b31982 100644 --- a/shells/zsh/includes/overidepartialcompletion.zsh +++ b/shells/zsh/includes/overidepartialcompletion.zsh @@ -44,7 +44,7 @@ overidecomplete(){ # 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 ;; # If I want to uninstall something, give a list of things to uninstall - -R*) toadd="$($cmd -Qq | fzf -m --preview "$cmd -Qi {1}" | tr '\n' ' ')"; ret=0 ;; + -R*) toadd="$($cmd -Qeq | fzf -m --preview "$cmd -Qi {1}" | tr '\n' ' ')"; ret=0 ;; -Ql) toadd="$($cmd -Qq | fzf -m --preview "$cmd -Qi {1}" | tr '\n' ' ')"; ret=0 ;; esac ;; msfvenom)