Complete filenames after commands in rrdtool (Debian: #577933)
This commit is contained in:
parent
e35eabb791
commit
7b2c2ebf9b
1
CHANGES
1
CHANGES
@ -31,6 +31,7 @@ bash-completion (2.x)
|
|||||||
* Fix __get_cword_at_cursor_by_ref: check for $index when completing
|
* Fix __get_cword_at_cursor_by_ref: check for $index when completing
|
||||||
with a cword+1 argument already present (Debian: #622383)
|
with a cword+1 argument already present (Debian: #622383)
|
||||||
* Remove --unpack-level from lintian options (Debian: #623680)
|
* Remove --unpack-level from lintian options (Debian: #623680)
|
||||||
|
* Complete filenames after commands in rrdtool (Debian: #577933)
|
||||||
|
|
||||||
[ Freddy Vulto ]
|
[ Freddy Vulto ]
|
||||||
* Improve __reassemble_comp_words_by_ref() to not create words of
|
* Improve __reassemble_comp_words_by_ref() to not create words of
|
||||||
|
@ -7,8 +7,12 @@ _rrdtool ()
|
|||||||
local cur prev words cword
|
local cur prev words cword
|
||||||
_init_completion || return
|
_init_completion || return
|
||||||
|
|
||||||
COMPREPLY=( $( compgen -W 'create update updatev graph dump restore last \
|
if [ ${#words[@]} -eq 2 ]; then
|
||||||
lastupdate first info fetch tune resize xport' -- "$cur" ) )
|
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
|
complete -F _rrdtool rrdtool
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user