Skip to content

S0raWasTaken/nil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[   ]

A little wrapper for xbps

Heavily inspired on VPM and Paru

Usage

# Searches and prompts a package for install
nil <package_name>

Installing from source:

Depends on:

  • bash
  • fzf
  • rust   (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!

Grabbing a release

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.

Extra info

doas

This wrapper uses sudo internally and only when doing the install.

In case you use doas instead of sudo:

  1. um. okay, I guess?
  2. you probably already suffer enough that you already linked /bin/doas to /bin/sudo
  3. doas ln -s /usr/bin/doas /usr/bin/sudo, but make sure you don't have it already.

Do I really need nil-query?

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)

About

A tiny wrapper script for the X Binary Package System (xbps)

Resources

License

Stars

Watchers

Forks

Packages

No packages published