Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
2b68600d
Commit
2b68600d
authored
Mar 22, 2019
by
Kevin Ottens
Committed by
Marc Cornellà
Mar 22, 2019
Browse files
suse: remove sudo from some zypper aliases (#7678)
Closes #5564
parent
1e11a3c1
Changes
2
Show whitespace changes
Inline
Side-by-side
plugins/suse/README.md
View file @
2b68600d
...
...
@@ -15,14 +15,14 @@ plugins=(... suse)
| Alias | Commands | Description |
| ---------------- | ----------------------------- | -------------------------------------------------------------- |
| z |
`sudo zypper`
| call zypper |
| zh |
`
sudo
zypper -h`
| print help |
| zhse |
`
sudo
zypper -h se`
| print help for the search command |
| zlicenses |
`
sudo
zypper licenses`
| prints a report about licenses and EULAs of installed packages |
| zh |
`zypper -h`
| print help |
| zhse |
`zypper -h se`
| print help for the search command |
| zlicenses |
`zypper licenses`
| prints a report about licenses and EULAs of installed packages |
| zps |
`sudo zypper ps`
| list process using deleted files |
| zshell |
`sudo zypper shell`
| open a zypper shell session |
| zsource-download |
`sudo zypper source-download`
| download source rpms for all installed packages |
| ztos |
`
sudo
zypper tos`
| shows
the
ID string of the target operating system |
| zvcmp |
`
sudo
zypper vcmp`
| tell whether version1 is older or newer than version2 |
| ztos |
`zypper tos`
| shows the ID string of the target operating system
|
| zvcmp |
`zypper vcmp`
| tell whether version1 is older or newer than version2 |
## Packages commands
...
...
@@ -39,8 +39,8 @@ plugins=(... suse)
| Alias | Commands | Description |
| ------ | ------------------- | ---------------------- |
| zdup |
`sudo zypper dup`
| upgrade packages |
| zlp |
`
sudo
zypper lp`
| list necessary patches |
| zlu |
`
sudo
zypper lu`
| list updates |
| zlp |
`zypper lp`
| list necessary patches |
| zlu |
`zypper lu`
| list updates |
| zpchk |
`sudo zypper pchk`
| check for patches |
| zup |
`sudo zypper up`
| update packages |
| zpatch |
`sudo zypper patch`
| install patches |
...
...
@@ -49,16 +49,16 @@ plugins=(... suse)
| Alias | Commands | Description |
| ------------- | -------------------------- | ---------------------------------------------------- |
| zif |
`
sudo
zypper if`
| display info about packages |
| zpa |
`
sudo
zypper pa`
| list packages |
| zpatch-info |
`
sudo
zypper patch-info`
| display info about patches |
| zpattern-info |
`
sudo
zypper pattern-info`
| display info about patterns |
| zproduct-info |
`
sudo
zypper product-info`
| display info about products |
| zpch |
`
sudo
zypper pch`
| list all patches |
| zpd |
`
sudo
zypper pd`
| list products |
| zpt |
`
sudo
zypper pt`
| list patterns |
| zse |
`
sudo
zypper se`
| search for packages |
| zwp |
`
sudo
zypper wp`
| list all packages providing the specified capability |
| zif |
`zypper if`
| display info about packages |
| zpa |
`zypper pa`
| list packages |
| zpatch-info |
`zypper patch-info`
| display info about patches |
| zpattern-info |
`zypper pattern-info`
| display info about patterns |
| zproduct-info |
`zypper product-info`
| display info about products |
| zpch |
`zypper pch`
| list all patches |
| zpd |
`zypper pd`
| list products |
| zpt |
`zypper pt`
| list patterns |
| zse |
`zypper se`
| search for packages |
| zwp |
`zypper wp`
| list all packages providing the specified capability |
## Repositories commands
...
...
@@ -66,7 +66,7 @@ plugins=(... suse)
| ----- | ------------------- | ---------------------------------------- |
| zar |
`sudo zypper ar`
| add a repository |
| zcl |
`sudo zypper clean`
| clean cache |
| zlr |
`
sudo
zypper lr`
| list repositories |
| zlr |
`zypper lr`
| list repositories |
| zmr |
`sudo zypper mr`
| modify repositories |
| znr |
`sudo zypper nr`
| rename repositories (for the alias only) |
| zref |
`sudo zypper ref`
| refresh repositories |
...
...
@@ -79,12 +79,12 @@ plugins=(... suse)
| zms |
`sudo zypper ms`
| modify properties of specified services |
| zrefs |
`sudo zypper refs`
| refreshing a service mean executing the service's special task |
| zrs |
`sudo zypper rs`
| remove specified repository index service from the system |
| zls |
`
sudo
zypper ls`
| list services defined on the system |
| zls |
`zypper ls`
| list services defined on the system |
## Package Locks Management commands
| Alias | Commands | Description |
| ----- | ---------------- | ----------------------------------- |
| zal |
`sudo zypper al`
| add a package lock |
| zcl |
`sudo zypper cl`
| remove unused locks |
| zll |
`
sudo
zypper ll`
| list currently active package locks |
| zll |
`zypper ll`
| list currently active package locks |
| zrl |
`sudo zypper rl`
| remove specified package lock |
plugins/suse/suse.plugin.zsh
View file @
2b68600d
#Main commands
alias
z
=
'sudo zypper'
alias
zh
=
'
sudo
zypper -h'
alias
zhse
=
'
sudo
zypper -h se'
alias
zlicenses
=
'
sudo
zypper licenses'
alias
zh
=
'zypper -h'
alias
zhse
=
'zypper -h se'
alias
zlicenses
=
'zypper licenses'
alias
zps
=
'sudo zypper ps'
alias
zshell
=
'sudo zypper shell'
alias
zsource-download
=
'sudo zypper source-download'
alias
ztos
=
'
sudo
zypper tos'
alias
zvcmp
=
'
sudo
zypper vcmp'
alias
ztos
=
'zypper tos'
alias
zvcmp
=
'zypper vcmp'
#Packages commands
alias
zin
=
'sudo zypper in'
...
...
@@ -18,28 +18,28 @@ alias zve='sudo zypper ve'
#Updates commands
alias
zdup
=
'sudo zypper dup'
alias
zlp
=
'
sudo
zypper lp'
alias
zlu
=
'
sudo
zypper lu'
alias
zlp
=
'zypper lp'
alias
zlu
=
'zypper lu'
alias
zpchk
=
'sudo zypper pchk'
alias
zup
=
'sudo zypper up'
alias
zpatch
=
'sudo zypper patch'
#Request commands
alias
zif
=
'
sudo
zypper if'
alias
zpa
=
'
sudo
zypper pa'
alias
zpatch-info
=
'
sudo
zypper patch-info'
alias
zpattern-info
=
'
sudo
zypper pattern-info'
alias
zproduct-info
=
'
sudo
zypper product-info'
alias
zpch
=
'
sudo
zypper pch'
alias
zpd
=
'
sudo
zypper pd'
alias
zpt
=
'
sudo
zypper pt'
alias
zse
=
'
sudo
zypper se'
alias
zwp
=
'
sudo
zypper wp'
alias
zif
=
'zypper if'
alias
zpa
=
'zypper pa'
alias
zpatch-info
=
'zypper patch-info'
alias
zpattern-info
=
'zypper pattern-info'
alias
zproduct-info
=
'zypper product-info'
alias
zpch
=
'zypper pch'
alias
zpd
=
'zypper pd'
alias
zpt
=
'zypper pt'
alias
zse
=
'zypper se'
alias
zwp
=
'zypper wp'
#Repositories commands
alias
zar
=
'sudo zypper ar'
alias
zcl
=
'sudo zypper clean'
alias
zlr
=
'
sudo
zypper lr'
alias
zlr
=
'zypper lr'
alias
zmr
=
'sudo zypper mr'
alias
znr
=
'sudo zypper nr'
alias
zref
=
'sudo zypper ref'
...
...
@@ -50,10 +50,10 @@ alias zas='sudo zypper as'
alias
zms
=
'sudo zypper ms'
alias
zrefs
=
'sudo zypper refs'
alias
zrs
=
'sudo zypper rs'
alias
zls
=
'
sudo
zypper ls'
alias
zls
=
'zypper ls'
#Package Locks Management commands
alias
zal
=
'sudo zypper al'
alias
zcl
=
'sudo zypper cl'
alias
zll
=
'
sudo
zypper ll'
alias
zll
=
'zypper ll'
alias
zrl
=
'sudo zypper rl'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment