From 9cc6ebe7a2263e6697d497e95335369b06bec11b Mon Sep 17 00:00:00 2001 From: Eric Cook Date: Thu, 11 Feb 2016 22:53:16 -0500 Subject: 37913: add additional completers and _zpool improvement --- Completion/Unix/Command/_tput | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Completion/Unix/Command/_tput (limited to 'Completion/Unix/Command/_tput') diff --git a/Completion/Unix/Command/_tput b/Completion/Unix/Command/_tput new file mode 100644 index 000000000..a3b4e949c --- /dev/null +++ b/Completion/Unix/Command/_tput @@ -0,0 +1,18 @@ +#compdef tput +local -a args + +case $OSTYPE in + *linux*) + args=( + - set1 + '-S[allows more than one capability per invocation of tput]' + - set2 + '-V[reports the version of ncurses used for tput]' + ) +esac + +_arguments : \ + $args - set3 \ + '(-S -V)-T+[terminal type]:terminal type:_terminals' \ + '1:terminal capabilities:( init reset longname ${(k)terminfo} )' \ + '*:capability parameters:{ [[ $words[1] != (init|reset|longname) ]] && _message parameter }' -- cgit 1.4.1