init.zsh 799 B

12345678910111213141516171819202122232425262728
  1. #
  2. # Defines yum aliases.
  3. #
  4. # Authors:
  5. # Simon <contact@saimon.org>
  6. # Sorin Ionescu <sorin.ionescu@gmail.com>
  7. #
  8. # Return if requirements are not found.
  9. if (( ! $+commands[yum] )); then
  10. return 1
  11. fi
  12. #
  13. # Aliases
  14. #
  15. alias yumc='sudo yum clean all' # Cleans the cache.
  16. alias yumh='yum history' # Displays history.
  17. alias yumi='sudo yum install' # Installs package(s).
  18. alias yuml='yum list' # Lists packages.
  19. alias yumL='yum list installed' # Lists installed packages.
  20. alias yumq='yum info' # Displays package information.
  21. alias yumr='sudo yum remove' # Removes package(s).
  22. alias yums='yum search' # Searches for a package.
  23. alias yumu='sudo yum update' # Updates packages.
  24. alias yumU='sudo yum upgrade' # Upgrades packages.