diff --git a/modules/zypper/README.md b/modules/zypper/README.md new file mode 100644 index 00000000..115d9b2d --- /dev/null +++ b/modules/zypper/README.md @@ -0,0 +1,31 @@ +Zypper +=== + +Defines [zypper][1] aliases. + +Aliases +------- + + - `zypc` # Cleans the cache. + - `zyph` # Displays history. + - `zypi` # Installs package(s). + - `zypl` # Clean packages cache. + - `zypq` # Displays package information. + - `zypr` # Removes package(s). + - `zyps` # Searches for a package. + - `zypv` # Verifies dependencies. + - `zypu` # Updates packages. + - `zypU` # Dist Upgrade. + - `zypUD` # Dist Upgrade download only. + - `zypUn` # Dist Upgrade no repository refresh. + - `zypR` # Refresh repositories caches. + +Authors +------- + +*The authors of this module should be contacted via the [issue tracker][2].* + + - [Sorin Ionescu](https://github.com/sorin-ionescu) + +[1]: https://en.opensuse.org/Portal:Zypper +[2]: https://github.com/sorin-ionescu/prezto/issues diff --git a/modules/zypper/init.zsh b/modules/zypper/init.zsh new file mode 100644 index 00000000..f737d935 --- /dev/null +++ b/modules/zypper/init.zsh @@ -0,0 +1,31 @@ +# +# Defines zypper aliases. +# +# Authors: +# Simon +# Sorin Ionescu +# Andrea Ceccarelli +# + +# Return if requirements are not found. +if (( ! $+commands[zypper] )); then + return 1 +fi + +# +# Aliases +# + +alias zypc='sudo zypper clean -a' # Cleans the cache. +alias zyph='zypper history' # Displays history. +alias zypi='sudo zypper install' # Installs package(s). +alias zypl='zypper clean' # Clean packages cache. +alias zypq='zypper info' # Displays package information. +alias zypr='sudo zypper remove' # Removes package(s). +alias zyps='zypper search' # Searches for a package. +alias zypv='sudo zypper ve' # Verifies dependencies. +alias zypu='sudo zypper up' # Updates packages. +alias zypU='sudo zypper dup' # Dist Upgrade. +alias zypUD='sudo zypper dup --download-only' # Dist Upgrade download only. +alias zypUn='sudo zypper --no-refresh' # Dist Upgrade no repository refresh. +alias zypR='sudo zypper ref' # Refresh repositories caches. \ No newline at end of file