mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 14:43:55 +08:00
kdeconnect-cli completions: ignore stderror (#7074)
* kdeconnect-cli completions: ignore error messages * squash this please
This commit is contained in:
parent
f25f15fd69
commit
4dff15b74e
|
@ -1,5 +1,5 @@
|
|||
function __complete_devices
|
||||
kdeconnect-cli --shell-device-autocompletion=zsh | string replace -rf -- '(\w+)\[(.*)]' '$1\t$2'
|
||||
kdeconnect-cli --shell-device-autocompletion=zsh 2>/dev/null | string replace -rf -- '(\w+)\[(.*)]' '$1\t$2'
|
||||
or kdeconnect-cli --list-devices 2>/dev/null | string replace -rf -- '- (.*): (\w+) .*' '$2\t$1'
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user