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
6d5b8484
Unverified
Commit
6d5b8484
authored
Aug 20, 2021
by
Ilya Bizyaev
Committed by
GitHub
Aug 20, 2021
Browse files
fix(suse): avoid refresh attempts for Zypper queries (#9798)
parent
cbb53426
Changes
2
Show whitespace changes
Inline
Side-by-side
plugins/suse/README.md
View file @
6d5b8484
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
**Maintainer**
:
[
r-darwish
](
https://github.com/r-darwish
)
**Maintainer**
:
[
r-darwish
](
https://github.com/r-darwish
)
Alias for Zypper according to the official Zypper's alias
Alias for Zypper according to the official Zypper's alias
To use it add
`suse`
to the plugins array in you zshrc file.
To use it add
`suse`
to the plugins array in you zshrc file.
```
zsh
```
zsh
plugins
=(
... suse
)
plugins
=(
... suse
)
...
@@ -60,6 +60,12 @@ plugins=(... suse)
...
@@ -60,6 +60,12 @@ plugins=(... suse)
| zse |
`zypper se`
| search for packages |
| zse |
`zypper se`
| search for packages |
| zwp |
`zypper wp`
| list all packages providing the specified capability |
| zwp |
`zypper wp`
| list all packages providing the specified capability |
NOTE:
`--no-refresh`
is passed to zypper for speeding up the calls and avoid errors due to lack
of root privileges. If you need to refresh the repositories, call
`sudo zypper ref`
(
`zref`
alias)
before runing these aliases.
Related:
[
#9798
](
https://github.com/ohmyzsh/ohmyzsh/pull/9798
)
.
## Repositories commands
## Repositories commands
| Alias | Commands | Description |
| Alias | Commands | Description |
...
...
plugins/suse/suse.plugin.zsh
View file @
6d5b8484
...
@@ -25,16 +25,16 @@ alias zup='sudo zypper up'
...
@@ -25,16 +25,16 @@ alias zup='sudo zypper up'
alias
zpatch
=
'sudo zypper patch'
alias
zpatch
=
'sudo zypper patch'
#Request commands
#Request commands
alias
zif
=
'zypper if'
alias
zif
=
'zypper
--no-refresh
if'
alias
zpa
=
'zypper pa'
alias
zpa
=
'zypper
--no-refresh
pa'
alias
zpatch-info
=
'zypper patch-info'
alias
zpatch-info
=
'zypper
--no-refresh
patch-info'
alias
zpattern-info
=
'zypper pattern-info'
alias
zpattern-info
=
'zypper
--no-refresh
pattern-info'
alias
zproduct-info
=
'zypper product-info'
alias
zproduct-info
=
'zypper
--no-refresh
product-info'
alias
zpch
=
'zypper pch'
alias
zpch
=
'zypper
--no-refresh
pch'
alias
zpd
=
'zypper pd'
alias
zpd
=
'zypper
--no-refresh
pd'
alias
zpt
=
'zypper pt'
alias
zpt
=
'zypper
--no-refresh
pt'
alias
zse
=
'zypper se'
alias
zse
=
'zypper
--no-refresh
se'
alias
zwp
=
'zypper wp'
alias
zwp
=
'zypper
--no-refresh
wp'
#Repositories commands
#Repositories commands
alias
zar
=
'sudo zypper ar'
alias
zar
=
'sudo zypper ar'
...
...
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