The following commit has been merged in the master branch:
commit 7b2c2ebf9b4826c18b460342eb26ff42b83e6753
Author: David Paleino <[email protected]>
Date: Wed Apr 27 13:45:03 2011 +0200
Complete filenames after commands in rrdtool (Debian: #577933)
diff --git a/CHANGES b/CHANGES
index d720a45..0016003 100644
--- a/CHANGES
+++ b/CHANGES
@@ -31,6 +31,7 @@ bash-completion (2.x)
* Fix __get_cword_at_cursor_by_ref: check for $index when completing
with a cword+1 argument already present (Debian: #622383)
* Remove --unpack-level from lintian options (Debian: #623680)
+ * Complete filenames after commands in rrdtool (Debian: #577933)
[ Freddy Vulto ]
* Improve __reassemble_comp_words_by_ref() to not create words of
diff --git a/completions/rrdtool b/completions/rrdtool
index 817b1ae..aec5dbb 100644
--- a/completions/rrdtool
+++ b/completions/rrdtool
@@ -7,8 +7,12 @@ _rrdtool ()
local cur prev words cword
_init_completion || return
- COMPREPLY=( $( compgen -W 'create update updatev graph dump restore last \
- lastupdate first info fetch tune resize xport' -- "$cur" ) )
+ if [ ${#words[@]} -eq 2 ]; then
+ COMPREPLY=( $( compgen -W 'create update updatev graph dump restore \
+ last lastupdate first info fetch tune resize xport' -- "$cur" ) )
+ else
+ _filedir rrd
+ fi
} &&
complete -F _rrdtool rrdtool
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits