kdeconnect-cli completions: ignore stderror (#7074)

* kdeconnect-cli completions: ignore error messages

* squash this please
This commit is contained in:
Jason 2020-06-03 23:12:52 +09:00 committed by GitHub
parent f25f15fd69
commit 4dff15b74e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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