A little wrapper for xbps
Heavily inspired on VPM and Paru
# Searches and prompts a package for install
nil <package_name>Depends on:
bashfzfrust(build dependency)cargo(build dependency)git(build dependency)
git clone https://github.com/S0raWasTaken/nil --depth 1
cd nil
# installs the nil-query binary
cargo install --path .
chmod +x nil
# Make sure to add this directory to your PATH, or move it somewhere else
mkdir -p ~/.local/bin
cp nil ~/.local/bin
# done!The .tar.gz in the releases page contains the nil-query binary and the nil script.
Just throw them wherever you find best, honestly. Also don't forget to install fzf.
These two are my personal favourites:
/usr/local/bin$HOME/.local/bin
Make sure that they're in $PATH and you're ready to go.
This wrapper uses sudo internally and only when doing the install.
In case you use doas instead of sudo:
- um. okay, I guess?
- you probably already suffer enough that you already linked
/bin/doasto/bin/sudo doas ln -s /usr/bin/doas /usr/bin/sudo, but make sure you don't have it already.
Not really, but it kinda does some sorting and prettifying of xbps-query's output.
If you REALLY don't want it, just change this line on the nil script:
- done < <(nil-query $package | fzf -m --ansi)
+ done < <(xbps-query $package | fzf -m)