From 0d59e89374b3634707a16403a27214ffd557c525 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 3 May 2025 14:12:10 +0200 Subject: [PATCH] completions/wpctl: silence stderr In case the command is missing, I guess See https://github.com/fish-shell/fish-shell/pull/11438 --- share/completions/wpctl.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completions/wpctl.fish b/share/completions/wpctl.fish index f9d08f17e..bb3d94dd7 100644 --- a/share/completions/wpctl.fish +++ b/share/completions/wpctl.fish @@ -43,8 +43,8 @@ function __wpctl_command_shape end function __wpctl_get_settings - set -l wpctl_settings (wpctl settings | string collect) - + set -l wpctl_settings (wpctl settings 2>/dev/null| string collect) + string match --regex --all --quiet '\- Name: (?.*)\n Desc: (?.*)' $wpctl_settings for i in (seq 1 (count $wpctl_settings_name))