From 47b477450524e34d5ef9eee1771deb76927bba28 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 24 Nov 2019 16:18:10 +0100 Subject: [PATCH] Add fuzzy package installation/removal Use fzay to install packages by fuzzy finding them. Use uzay to uninstall with fzf. --- .config/shell/rc.d/alias-fuzzy-finding.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/shell/rc.d/alias-fuzzy-finding.sh b/.config/shell/rc.d/alias-fuzzy-finding.sh index bce5cb5..2a8a761 100644 --- a/.config/shell/rc.d/alias-fuzzy-finding.sh +++ b/.config/shell/rc.d/alias-fuzzy-finding.sh @@ -76,3 +76,8 @@ alias ref=fzf_bibtex # Display fuzzy-searchable history alias zhfind="history | fzf --tac --height 20" + +# Fuzzy search packages to install +alias fzay="yay -Slq | fzf -m --preview 'yay -Si {1}' | xargs -ro yay -S" +# Fuzzy uninstall packages +alias uzay="yay -Qeq | fzf -m --preview 'yay -Qi {1}' | xargs -ro yay -Rs"