mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
openSUSE's Zypper Plugin
This commit is contained in:
parent
bc9fe7423f
commit
7b932dabd2
2 changed files with 33 additions and 0 deletions
21
plugins/zypper/README.md
Normal file
21
plugins/zypper/README.md
Normal 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 |
|
12
plugins/zypper/zypper.plugin.zsh
Normal file
12
plugins/zypper/zypper.plugin.zsh
Normal 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
|
Loading…
Reference in a new issue