diff options
| author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2019-04-10 11:59:26 +0900 |
|---|---|---|
| committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2019-04-10 11:59:26 +0900 |
| commit | ba74b16716da3b095e7677d73dfca2bf14008de5 (patch) | |
| tree | 2f946c9fd6a0068b49c4737b9bd17633483fb63d /Completion/Linux/Command/_lsblk | |
| parent | 44202 (tweaked): _normal: Add -P to reset precommands (diff) | |
| download | zsh-ba74b16716da3b095e7677d73dfca2bf14008de5.tar zsh-ba74b16716da3b095e7677d73dfca2bf14008de5.tar.gz zsh-ba74b16716da3b095e7677d73dfca2bf14008de5.tar.bz2 zsh-ba74b16716da3b095e7677d73dfca2bf14008de5.tar.lz zsh-ba74b16716da3b095e7677d73dfca2bf14008de5.tar.xz zsh-ba74b16716da3b095e7677d73dfca2bf14008de5.tar.zst zsh-ba74b16716da3b095e7677d73dfca2bf14008de5.zip | |
44210: add _findmnt and update _lsblk
Diffstat (limited to 'Completion/Linux/Command/_lsblk')
| -rw-r--r-- | Completion/Linux/Command/_lsblk | 6 |
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 ;; |
