Use the excellent fzf to interactively install and uninstall eopkg packages.
The following aliases are defined:
pit
: Fuzzy search and install packageprm
: Fuzzy search and remove packagepli
: Fuzzy search installed packagepca
: Cache available packages for faster search
You can specify a search parameter, e.g., pit git
will start your search with git
.
Select/unselect multiple using tab
and shift-tab
by default.
Previews will show eopkg info
for the selected package.
By default fzf-eopkg
will cache available packages for faster pit
search.
You can disable caching by adding export FE_CACHE=false
in your .zshrc
Alternatively you can specify the path in which fzf-eopkg
will use to save the
cache file by adding export FE_CACHE_PATH=path/to/cache/file.txt
to your
.zshrc
Similarly, you can change how frequently fzf-eopkg
should update cache file
with the FE_CACHE_INTERVAL
environment variable (default is 129600 seconds =
15 days)
Install fzf with sudo eopkg install fzf
cd ~/.oh-my-zsh/custom/plugins
git clone [email protected]:nguyentritai2906/fzf-eopkg.git fzf-eopkg
- Add
fzf-eopkg
to your.zshrc
plugin listplugins=(... fzf-eopkg)
Add zgenom load nguyentritai2906/fzf-eopkg
or zgenom load nguyentritai2906/fzf-eopkg
to your .zshrc
Add antigen bundle nguyentritai2906/fzf-eopkg
to your .zshrc