diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2000-04-17 08:42:18 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2000-04-17 08:42:18 +0000 |
| commit | 306adcc9c47ac959d5fdd85ddb85470fac086e87 (patch) | |
| tree | 3e4e50091f4f5a6aa63938f63136f9af0f81c8e3 /Completion/Linux | |
| parent | better completion after `=', everywhere (10780) (diff) | |
| download | zsh-306adcc9c47ac959d5fdd85ddb85470fac086e87.tar zsh-306adcc9c47ac959d5fdd85ddb85470fac086e87.tar.gz zsh-306adcc9c47ac959d5fdd85ddb85470fac086e87.tar.bz2 zsh-306adcc9c47ac959d5fdd85ddb85470fac086e87.tar.lz zsh-306adcc9c47ac959d5fdd85ddb85470fac086e87.tar.xz zsh-306adcc9c47ac959d5fdd85ddb85470fac086e87.tar.zst zsh-306adcc9c47ac959d5fdd85ddb85470fac086e87.zip | |
10772: Chmouel: rpm --target completion
Diffstat (limited to 'Completion/Linux')
| -rw-r--r-- | Completion/Linux/_rpm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Completion/Linux/_rpm b/Completion/Linux/_rpm index ff388fe22..6db97889a 100644 --- a/Completion/Linux/_rpm +++ b/Completion/Linux/_rpm @@ -162,6 +162,7 @@ while [[ -n "$state" ]]; do '--ftpproxy:FTP proxy server:_hosts' \ '--ftpport:FTP port number:' \ --{short-circuit,clean,rmsource,sign,test} \ + '--target:specify a build target:->target'\ '--buildroot:build root directory:_files -/' \ '--buildarch:architecture for which to build:' \ '--buildos:ositecture for which to build:' \ @@ -189,6 +190,10 @@ while [[ -n "$state" ]]; do package_or_file) state=package_file ;& + target) + _wanted target expl 'Target platforms' \ + compadd $(_call target rpm --showrc |grep 'compatible archs'|sed 's/.*: //') && ret=0 + ;; package) _wanted packages expl 'RPM package' \ compadd -M 'r:|-=* r:|=*' - $(_call packages rpm -qa) && ret=0 |
