Skip to content

Commit

Permalink
Bash autocompletion support .xml.bz2 files, not only .xml trac#433
Browse files Browse the repository at this point in the history
  • Loading branch information
Zbynek Moravec authored and isimluk committed Jul 13, 2015
1 parent ce62a6f commit 8fe81c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/bash_completion.d/oscap
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function _oscap {
case "$prev" in
--AV|--AC|--AU|--CI|--II|--AI|--EX|--RL|--RC|--CD|--TD|--CR|--IR|--AR)
COMPREPLY=( $(compgen -W "`$prog cvss $cmd -h | sed -r -n -e "s:^\s+$prev=\[(.+)\].+$:\1:gp" | tr '|' ' '`" -- ${cur}) ) ;;
--results|-o|--output|--template|--oval-template) _filedir 'xml' ;;
--results|-o|--output|--template|--oval-template) _filedir 'xml.bz2|xml' ;;
--report) _filedir 'html' ;;
esac

Expand All @@ -88,7 +88,7 @@ function _oscap {

case "$modpath" in
oscap:cvss:*) ;; # no positional args for cvss
*) _filedir 'xml' ;;
*) _filedir 'xml.bz2|xml' ;;
esac

fi
Expand Down

0 comments on commit 8fe81c7

Please sign in to comment.