fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

mattmc3fish_indent: Cleanup all *.fish files not in tests9eee1b449

master
1.3 KiB22 linesraw
1function __fish_dmidecode_complete_keywords
2    dmidecode -s 2>&1 1>/dev/null | string match -rg '^\s+(.*)'
3end
4
5function __fish_dmidecode_complete_types
6    dmidecode -t 2>&1 1>/dev/null | string match -rg '^\s+(.*)'
7end
8
9complete -c dmidecode -f
10complete -c dmidecode -s d -l dev-mem -r -d 'Memory device file'
11complete -c dmidecode -s q -l quiet -d 'Be less verbose'
12complete -c dmidecode -l no-quirks -d 'Decode everything exactly as it is'
13complete -c dmidecode -s s -l string -xa '(__fish_dmidecode_complete_keywords)' -d 'Only display specified value'
14complete -c dmidecode -s t -l type -xa '(__fish_dmidecode_complete_types)' -d 'Only display entries of specified type'
15complete -c dmidecode -s H -l handle -x -d 'Only display specified handle'
16complete -c dmidecode -s u -l dump -d 'Do not decode the entries'
17complete -c dmidecode -l dump-bin -r -d 'Dump DMI data to a file'
18complete -c dmidecode -l from-dump -r -d 'Read DMI data generated using --dump-bin'
19complete -c dmidecode -l no-sysfs -d 'Do not attempt to read DMI data from sysfs files'
20complete -c dmidecode -l oem-string -x -d 'Only display the value of the OEM string number N'
21complete -c dmidecode -s h -l help -d 'Display usage information and exit'
22complete -c dmidecode -s V -l version -d 'Display the version and exit'