You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
907 B
34 lines
907 B
#
|
|
# Defines yum aliases.
|
|
#
|
|
# Authors:
|
|
# Simon <contact@saimon.org>
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
#
|
|
|
|
# Return if requirements are not found.
|
|
if (( ! $+commands[yum] )); then
|
|
return 1
|
|
fi
|
|
|
|
#
|
|
# Aliases
|
|
#
|
|
|
|
# Return if conditions are unsatistied
|
|
if ! zstyle -t ':prezto:alias' pmodule all yum; then
|
|
return 1
|
|
fi
|
|
|
|
alias yumc='sudo yum clean all' # Cleans the cache.
|
|
alias yumh='yum history' # Displays history.
|
|
alias yumi='sudo yum install' # Installs package(s).
|
|
alias yuml='yum list' # Lists packages.
|
|
alias yumL='yum list installed' # Lists installed packages.
|
|
alias yumq='yum info' # Displays package information.
|
|
alias yumr='sudo yum remove' # Removes package(s).
|
|
alias yums='yum search' # Searches for a package.
|
|
alias yumu='sudo yum update' # Updates packages.
|
|
alias yumU='sudo yum upgrade' # Upgrades packages.
|
|
|