summaryrefslogtreecommitdiffstats
path: root/Completion/Linux
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-16 16:21:28 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-16 16:21:28 +0000
commit2218c5e75d4fdd9b688d3cbe1329e690a660936e (patch)
tree61aa4c5d6c11286a90807a7c585d2c4c56362431 /Completion/Linux
parentzsh-workers/7866 (diff)
downloadzsh-2218c5e75d4fdd9b688d3cbe1329e690a660936e.tar
zsh-2218c5e75d4fdd9b688d3cbe1329e690a660936e.tar.gz
zsh-2218c5e75d4fdd9b688d3cbe1329e690a660936e.tar.bz2
zsh-2218c5e75d4fdd9b688d3cbe1329e690a660936e.tar.lz
zsh-2218c5e75d4fdd9b688d3cbe1329e690a660936e.tar.xz
zsh-2218c5e75d4fdd9b688d3cbe1329e690a660936e.tar.zst
zsh-2218c5e75d4fdd9b688d3cbe1329e690a660936e.zip
zsh-workers/7870
Diffstat (limited to 'Completion/Linux')
-rw-r--r--Completion/Linux/_rpm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Linux/_rpm b/Completion/Linux/_rpm
index 5f6843267..4a54eddfa 100644
--- a/Completion/Linux/_rpm
+++ b/Completion/Linux/_rpm
@@ -148,7 +148,7 @@ while [[ -n "$state" ]]; do
'*:RPM package:->package' && ret=0
;;
build_b)
- tmp=( '*:spec file:_files -g \*.spec' )
+ tmp=( '*:spec file:_path_files -/ -g \*.spec' )
;&
build_t)
(( $#tmp )) || tmp=( '*:tar file:_files -g \*.\(\#i\)tar\(.\*\|\)' )
@@ -195,7 +195,7 @@ while [[ -n "$state" ]]; do
_hosts -S/ && ret=0
else
_description expl 'RPM package file'
- _files "$expl[@]" -g '*.(#i)rpm' && ret=0
+ _path_files "$expl[@]" -/ -g '*.(#i)rpm' && ret=0
_description expl 'ftp URL prefix'
compadd "$expl[@]" ftp://
fi