fish-shell/share/functions/__fish_print_lsblk_columns.fish

5 lines
166 B
Fish
Raw Normal View History

function __fish_print_lsblk_columns --description 'Print available lsblk columns'
lsblk --help | sed '1,/Available columns:/d; /^$/,$d; s/^\s\+//; s/\s/\t/'
end