about summary refs log tree commit diff
path: root/Completion/Linux/Command/_lsblk
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Linux/Command/_lsblk')
-rw-r--r--Completion/Linux/Command/_lsblk6
1 files changed, 5 insertions, 1 deletions
diff --git a/Completion/Linux/Command/_lsblk b/Completion/Linux/Command/_lsblk
index 1a3687c45..a95ebe776 100644
--- a/Completion/Linux/Command/_lsblk
+++ b/Completion/Linux/Command/_lsblk
@@ -38,6 +38,10 @@ _arguments -C -s -S \
   '(* -)'{-V,--version}'[display version information]' && ret=0
 
 case $state in
+  columnlist)
+    compset -P '+' || _describe -t list-prefixes prefix \
+		      '( +:"not replace but extend the list" )' -S '' && ret=0
+  ;|
   *list)
     dedup=( ${(Ms.,.)PREFIX##*,} ${(Ms.,.)SUFFIX%%,*} )
     compset -S ',*' && suf=()
@@ -45,7 +49,7 @@ case $state in
   ;|
   column*)
     values=(
-      ${${${${(f)"$(_call_program columns lsblk -h)"}[(r)Available*,-3]## #}[2,-1]//:/\\:}/  /:}
+      ${${${${(f)"$(_call_program columns lsblk -h)"}[(r)Available*,-2]## #}[2,-1]//:/\\:}/  /:}
     )
     _describe -t fields column values -M 'm:{a-z}={A-Z}' $suf -F dedup && ret=0
   ;;