zr: Per-package default repositories
The syntax is currently:
zr add {package} {repository}
But this doesn't take into account human errors (or at least, ayekat errors), where one occasionally pushes packages to the wrong repository. To avoid that, it would be nice to make the {repository}
argument optional by allowing zr to "remember" where specific packages should go, e.g. with a configuration file.
For example, we could have $XDG_CONFIG_HOME/zr/defaults
, containing something like:
glibc repkg
pacman-hacks original
cower aur
and we could add/remove the corresponding packages without having to explicitly state their repository.
An issue with this is that the top-level directory for the zr configuration is already used up for the repository informations, so we might need to move those, breaking backwards compatibility (but then again, pacman-hacks is still pre-release, and I don't know of anyone except me who uses it, so who cares).