Persistent aliases for package managers.
If you like the idea click ⭐ on the repo and tweet.
To install use pip:
xpip install xontrib-pm
# OR: xpip install -U git+https://github.com/anki-code/xontrib-pm
After loading xontrib-pm is searching the known package managers. If the package manager installed (e.g. pacman
) the xontrib adds the aliases e.g. pacman-install
, pacman-search
, etc. The pm
command returns the list of known installed package managers.
xontrib load pm
pm
# pacman, brew
# Type `pacman-` and press Tab
pacman-search vim # sudo pacman -Ss vim
pacman-install vim # sudo pacman -Sy vim
Feel free to extand the list of known package managers.
PMs: apt
, brew
, guix
, pacman
, port
, yum
, zap
. Feel free to add more, PR is welcome!
The list of commands that need to have the package manager aliases i.e. <package_manager>-<command>
:
search
- serach the packageinstall
- install the packageuninstall
- uninstall the package
Optinally:
instally
(install and say yes) - install without user confirmationinstalled
- list of installed packages- Any other useful aliases e.g.
pacman-upgrade-everything
.
- Package manager-independent bash aliases
- This package was created with xontrib template.