mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
fix lsblk column completion
This commit is contained in:
parent
1a0d6ebe59
commit
0a6efdc4ad
|
@ -115,6 +115,8 @@ Completions
|
|||
- ``dua``
|
||||
- ``clojure``
|
||||
|
||||
- Improvements to some completions.
|
||||
|
||||
Improved terminal support
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
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
|
||||
|
||||
complete -c lsblk -s a -l all -d "print all devices"
|
||||
|
|
Loading…
Reference in New Issue
Block a user