Skip to content

Commit

Permalink
feat(fzf): add pf alias for fuzzy pacman search
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasnorrby committed Nov 19, 2020
1 parent 1ca4f5c commit b91bb02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shell/zsh/fzf.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -274,3 +274,8 @@ p() {
cd "${HOME}/${TARGET}"
fi
}

if [[ "$(_os)" == "arch" ]] ; then
# FZF Pacman search
alias pf="pacman -Slq | fzf --multi --preview 'pacman -Si {1}' | xargs -ro sudo pacman -S"
fi

0 comments on commit b91bb02

Please sign in to comment.