Skip to content

Commit

Permalink
fix(xfreerdp): support the new form of the option /list:kbd
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Feb 13, 2024
1 parent f75e488 commit d8cadfe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions completions/xfreerdp
Expand Up @@ -30,8 +30,12 @@ _comp_cmd_xfreerdp()

case $cur in
/kbd:*)
_comp_compgen -c "${cur#/kbd:}" split -- "$("$1" /kbd-list |
_comp_awk '/^0x/ { print $1 }')"
local kbd_list
kbd_list=$("$1" /kbd-list 2>/dev/null) ||
kbd_list=$("$1" /list:kbd 2>/dev/null)
_comp_compgen -c "${cur#/kbd:}" split -- "$(
_comp_awk '/^0x/ { print $1 }' <<<"$kbd_list"
)"
return
;;
/bpp:*)
Expand Down

0 comments on commit d8cadfe

Please sign in to comment.