Add completion for kb (#9357)

Closes #9357
This commit is contained in:
EmilySeville7cfg 2022-11-19 20:15:36 +10:00 committed by Johannes Altmanninger
parent a4c9b3a70d
commit 51141b9a2f
2 changed files with 9 additions and 0 deletions

View file

@ -117,6 +117,7 @@ Completions
- ``loadkeys`` - ``loadkeys``
- ``toot`` - ``toot``
- ``eg`` - ``eg``
- ``kb``
- Improvements to some completions. - Improvements to some completions.

View file

@ -0,0 +1,8 @@
# Based on https://github.com/gnebbia/kb#usage
set -l commands add edit list view grep update delete template import export erase sync help
complete -c kb -s h -l help -d 'Show help and exit'
complete -c kb -l version -d 'Show version and exit'
complete -c kb -n "not __fish_seen_subcommand_from $commands" -a $commands