From 7b932dabd2740f3897438d2745cbcbd8ce1b50a4 Mon Sep 17 00:00:00 2001 From: Harry ten Berge Date: Thu, 20 Feb 2020 15:37:45 +0100 Subject: [PATCH] openSUSE's Zypper Plugin --- plugins/zypper/README.md | 21 +++++++++++++++++++++ plugins/zypper/zypper.plugin.zsh | 12 ++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 plugins/zypper/README.md create mode 100644 plugins/zypper/zypper.plugin.zsh diff --git a/plugins/zypper/README.md b/plugins/zypper/README.md new file mode 100644 index 000000000..55b6790b1 --- /dev/null +++ b/plugins/zypper/README.md @@ -0,0 +1,21 @@ +## Description + +This plugin makes `zypper` usage easier by adding aliases for the most +common commands. + +`zypper` is the default package manager for SUSE distributions. + +## Aliases + +| Alias | Command | Description | +|-------|-------------------------|--------------------------------| +| zppls | `zypper ls` | List repositories | +| zppll | `zypper ll` | List locked packages | +| zpps | `zypper search` | Search package | +| **Use `sudo`** | +| zppu | `sudo zypper up` | Update installed package(s) | +| zppd | `sudo zypper dup` | Perform a distribution upgrade | +| zppi | `sudo zypper install` | Install package | +| zppr | `sudo zypper remove` | Remove package | +| zppal | `sudo zypper al` | Add package lock | +| zpprl | `sudo zypper rl` | Remove package lock | diff --git a/plugins/zypper/zypper.plugin.zsh b/plugins/zypper/zypper.plugin.zsh new file mode 100644 index 000000000..60519ba59 --- /dev/null +++ b/plugins/zypper/zypper.plugin.zsh @@ -0,0 +1,12 @@ +## Aliases + +alias zppls="zypper ls" # List repositories +alias zppll="zypper ll" # List locked packages +alias zpps="zypper search" # Search + +alias zzpu="sudo zypper up" # Update package +alias zzpd="sudo zypper dup" # Perform distribution upgrade +alias zzpi="sudo zypper install" # Install package +alias zzpr="sudo zypper remove" # Remove package +alias zzpal="sudo zypper al" # Add package lock +alias zzprl="sudo zypper rl" # Remove package lock