mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
add completion for qmk
This commit is contained in:
parent
0b8b535187
commit
336de2d9fa
1 changed files with 12 additions and 0 deletions
12
share/completions/qmk.fish
Normal file
12
share/completions/qmk.fish
Normal file
|
@ -0,0 +1,12 @@
|
|||
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)'
|
Loading…
Reference in a new issue