1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-27 08:10:08 +00:00

openSUSE's Zypper Plugin

This commit is contained in:
Harry ten Berge 2020-02-20 15:37:45 +01:00
parent bc9fe7423f
commit 7b932dabd2
2 changed files with 33 additions and 0 deletions

21
plugins/zypper/README.md Normal file
View file

@ -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 |

View file

@ -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