aboutsummaryrefslogtreecommitdiffstats
path: root/.config/zsh/completions/_nvt
blob: 6b2323b46a905786647a9e3752c6273a1a462dff (plain)
1
2
3
4
5
6
7
8
9
10
#compdef nvt

_nvt() {
  local config_dir
  config_dir="$HOME/.config/nvchecker/"
  _arguments "1:Arch Linux repository:( $config_dir/*.toml(:t:r) )" '2:Package:( "${(f)$(sed -rn "s/\"//g; /__config__/d; s/^\[(.*)\]$/\1/p" $config_dir/$line[1].toml )}" )'
}

compdef _nvt nvt