diff --git a/src/_xmake b/src/_xmake new file mode 100644 index 0000000..118e215 --- /dev/null +++ b/src/_xmake @@ -0,0 +1,6 @@ +#compdef xmake + +_xmake() { + local completions=("${(@f)$(XMAKE_SKIP_HISTORY=1 XMAKE_ROOT=y XMAKE_COLORTERM=nocolor xmake lua private.utils.complete 0 nospace "$words" 2>/dev/null)}") + compadd -Q -S '' -- ${completions[@]} +} diff --git a/src/_xrepo b/src/_xrepo new file mode 100644 index 0000000..c179997 --- /dev/null +++ b/src/_xrepo @@ -0,0 +1,6 @@ +#compdef xrepo + +_xrepo() { + local completions=("${(@f)$(XMAKE_SKIP_HISTORY=1 XMAKE_ROOT=y XMAKE_COLORTERM=nocolor xmake lua private.xrepo.complete 0 nospace "$words" 2>/dev/null)}") + compadd -Q -S '' -- ${completions[@]} +}