Skip to content

Commit

Permalink
Improve completion script
Browse files Browse the repository at this point in the history
Add gadget name completion for --gadget-name argument.
  • Loading branch information
qtc-de committed Jan 7, 2022
1 parent ac6bb56 commit 3338a34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/bash_completion.d/rmg
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ function _rmg() {
_filedir
return 0

elif _comp_contains "--ssrf-response --bind-objid --gadget-name --gadget-cmd" $prev; then
elif _comp_contains "--ssrf-response --bind-objid --gadget-cmd" $prev; then
return 0

elif _comp_contains "--gadget-name" $prev; then
opts="$gadgets"

elif [[ $cur == -* ]] || [[ $args -ge 8 ]]; then
opts="--help"
opts="$opts --gopher"
Expand Down

0 comments on commit 3338a34

Please sign in to comment.