summaryrefslogtreecommitdiff
path: root/plugins/suse
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2021-09-10 20:10:26 -0600
committerTuowen Zhao <ztuowen@gmail.com>2021-09-10 20:10:26 -0600
commit3c73976ef306d68a85d60c94be9a1dcdc33fa2bf (patch)
tree619ba4b5874b92ada9dc089c67a435dd3149748a /plugins/suse
parentf8b7b6584bf1ca7e836ba9cc13fcce573047fb07 (diff)
parent735808f48d54aabce540f6c90294e21118104cf4 (diff)
downloadzsh-3c73976ef306d68a85d60c94be9a1dcdc33fa2bf.tar.gz
zsh-3c73976ef306d68a85d60c94be9a1dcdc33fa2bf.tar.bz2
zsh-3c73976ef306d68a85d60c94be9a1dcdc33fa2bf.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'plugins/suse')
-rw-r--r--plugins/suse/README.md10
-rw-r--r--plugins/suse/suse.plugin.zsh20
2 files changed, 18 insertions, 12 deletions
diff --git a/plugins/suse/README.md b/plugins/suse/README.md
index b9b069574..06c6d9ef5 100644
--- a/plugins/suse/README.md
+++ b/plugins/suse/README.md
@@ -2,9 +2,9 @@
**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
plugins=(... suse)
@@ -60,6 +60,12 @@ plugins=(... suse)
| zse | `zypper se` | search for packages |
| 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
| Alias | Commands | Description |
diff --git a/plugins/suse/suse.plugin.zsh b/plugins/suse/suse.plugin.zsh
index dcfeccb03..56bc6f1c5 100644
--- a/plugins/suse/suse.plugin.zsh
+++ b/plugins/suse/suse.plugin.zsh
@@ -25,16 +25,16 @@ alias zup='sudo zypper up'
alias zpatch='sudo zypper patch'
#Request commands
-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'
+alias zif='zypper --no-refresh if'
+alias zpa='zypper --no-refresh pa'
+alias zpatch-info='zypper --no-refresh patch-info'
+alias zpattern-info='zypper --no-refresh pattern-info'
+alias zproduct-info='zypper --no-refresh product-info'
+alias zpch='zypper --no-refresh pch'
+alias zpd='zypper --no-refresh pd'
+alias zpt='zypper --no-refresh pt'
+alias zse='zypper --no-refresh se'
+alias zwp='zypper --no-refresh wp'
#Repositories commands
alias zar='sudo zypper ar'