mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 09:00:55 +00:00
improved fish shell completion
This commit is contained in:
parent
6dd54fa9c4
commit
dfd7870697
@ -1,5 +1,9 @@
|
||||
function __fish_fwupdmgr_devices --description 'Get device IDs used by fwupdmgr'
|
||||
fwupdmgr get-devices | string replace -f -r '.*Device ID:\s*(.*)' '$1'
|
||||
set -l ids (fwupdmgr get-devices | string replace -f -r '.*Device ID:\s*(.*)' '$1')
|
||||
set -l names (fwupdmgr get-devices | string replace -f -r '.*─(.*):$' '$1')
|
||||
for i in (seq (count $ids))
|
||||
echo -e "$ids[$i]\t$names[$i]"
|
||||
end
|
||||
end
|
||||
|
||||
function __fish_fwupdmgr_remotes --description 'Get remote IDs used by fwupdmgr'
|
||||
|
Loading…
Reference in New Issue
Block a user