fix lsblk column completion

This commit is contained in:
Lia Lenckowski 2022-10-29 19:07:41 +02:00 committed by Fabian Boehm
parent 1a0d6ebe59
commit 0a6efdc4ad
2 changed files with 3 additions and 2 deletions

View File

@ -115,6 +115,8 @@ Completions
- ``dua`` - ``dua``
- ``clojure`` - ``clojure``
- Improvements to some completions.
Improved terminal support Improved terminal support
^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -1,6 +1,5 @@
function __fish_print_lsblk_columns --description 'Print available lsblk columns' function __fish_print_lsblk_columns --description 'Print available lsblk columns'
lsblk --help | sed '1,/Available columns:/d; /^$/,$d; s/^\s\+//; s/\s/\t/' LC_ALL=C lsblk --help | sed '1,/Available .*columns:/d; /^$/,$d; s/^\s\+//; s/\s/\t/'
end end
complete -c lsblk -s a -l all -d "print all devices" complete -c lsblk -s a -l all -d "print all devices"