/bash_completion.d/rrdtool

http://github.com/brinkman83/bashrc · #! · 18 lines · 16 code · 2 blank · 0 comment · 0 complexity · ddaae2007ae07dff3345de4349e46130 MD5 · raw file

  1. # bash completion for rrdtool
  2. have rrdtool &&
  3. _rrdtool ()
  4. {
  5. cur=`_get_cword`
  6. COMPREPLY=( $( compgen -W 'create update updatev graph dump restore last \
  7. lastupdate first info fetch tune resize xport' -- "$cur" ) )
  8. } &&
  9. complete -F _rrdtool rrdtool
  10. # Local variables:
  11. # mode: shell-script
  12. # sh-basic-offset: 4
  13. # sh-indent-comment: t
  14. # indent-tabs-mode: nil
  15. # End:
  16. # ex: ts=4 sw=4 et filetype=sh