Adds commands for installing tools via various package managers using fzf.
Supports the following package managers:
- brew
- apt
- dnf
This package adds interactive aliases for installing packages using various package managers.
Alternatively to using them you can also take advantage of the fzf completion feature, e.g. by typing apt install git** and pressing <TAB> to complete the argument using fzf.
The following aliases are available:
aipapt install packagearpapt remove package
The following aliases are available:
bipbrew install packagebupbrew uninstall packagebcipbrew --cask install packagebcupbrew --cask uninstall package
The following aliases are available:
dipdnf install packagedrpdnf remove package
The fzf preview command and keybindings can be customized by setting the following variables after the plugin is loaded:
| Variable | Default | Description |
|---|---|---|
PACKAGEMANAGER_FZF_APT_PREVIEW |
apt-cache show {} |
Preview command for apt packages |
PACKAGEMANAGER_FZF_DNF_PREVIEW |
dnf -C --nogpgcheck info {} |
Preview command for dnf packages |
PACKAGEMANAGER_FZF_BREW_PREVIEW |
HOMEBREW_COLOR=true brew info {} |
Preview command for brew formulae |
PACKAGEMANAGER_FZF_BREW_BIND |
ctrl-x:execute-silent(brew home {}) |
Keybinding for brew formulae |
PACKAGEMANAGER_FZF_BREW_CASK_PREVIEW |
HOMEBREW_COLOR=true brew info --cask {} |
Preview command for brew casks |
PACKAGEMANAGER_FZF_BREW_CASK_BIND |
ctrl-x:execute-silent(brew home --cask {}) |
Keybinding for brew casks |
You need to have fzf installed.
antidote install goarano/zsh-fzf-packagemanager
zgen load goarano/zsh-fzf-packagemanager
antigen bundle goarano/zsh-fzf-packagemanager
♥ Kudos to @junegunn for developing fzf.
♥ This plugin was inspired by fzf-brew.