From 2d8f0c8706a68c5704c08fc998cd2a6e140a3765 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 5 Jan 2024 17:06:06 +0100 Subject: zsh: Add custom completions for the nvc and nvt wrappers Signed-off-by: David Runge --- .config/zsh/completions/_nvc | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .config/zsh/completions/_nvc (limited to '.config/zsh/completions/_nvc') diff --git a/.config/zsh/completions/_nvc b/.config/zsh/completions/_nvc new file mode 100644 index 0000000..0a64012 --- /dev/null +++ b/.config/zsh/completions/_nvc @@ -0,0 +1,9 @@ +#compdef nvc + +_nvc() { + local config_dir + config_dir="$HOME/.config/nvchecker/" + _arguments "1:Arch Linux repository:( $config_dir/*.toml(:t:r) )" +} + +compdef _nvc nvc -- cgit v1.2.3-70-g09d2