fish-shell/share/completions/qmk.fish

13 lines
350 B
Fish
Raw Normal View History

2021-07-28 09:32:10 +00:00
function __fish_qmk_complete
set -lx _ARGCOMPLETE 1
set -lx _ARGCOMPLETE_IFS \n
set -lx _ARGCOMPLETE_SUPPRESS_SPACE 1
set -lx _ARGCOMPLETE_SHELL fish
set -lx COMP_LINE (commandline -pc)
set -lx COMP_POINT (string length (commandline -cp))
set -lx COMP_TYPE
qmk 8>&1 9>&2 2>/dev/null
end
complete -c qmk -f -a '(__fish_qmk_complete)'