[projects/pld-ftp-admin] bash-completion: complete --index values of pfa-genindex
arekm
arekm at pld-linux.org
Sat Oct 24 11:46:14 CEST 2026
commit aa5e7f66ab9ba056f391be0b99fea2c6f911165f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Oct 20 16:11:02 2026 +0200
bash-completion: complete --index values of pfa-genindex
shell/bash-completion.sh | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/shell/bash-completion.sh b/shell/bash-completion.sh
index cc76d60..f29c107 100644
--- a/shell/bash-completion.sh
+++ b/shell/bash-completion.sh
@@ -36,12 +36,14 @@ _pfa_tree_files() {
have pfa-genindex &&
_pfa-genindex()
{
- local cur
+ local cur prev
COMPREPLY=()
- _get_comp_words_by_ref cur
+ _get_comp_words_by_ref cur prev
- if [[ "$cur" == -* ]]; then
+ if [[ "$prev" == --index ]]; then
+ COMPREPLY=( $( compgen -W 'poldek yum' -- "$cur" ) )
+ elif [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '\
-h --help -q --quiet --index \
--nopoldek --noyum \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/e14cb7d4d74f8bdd9368d9645ecaf49593cf6335
More information about the pld-cvs-commit
mailing list