From d7f4ad7ab8193b76a1f1af48f7e875cdc70ba09b Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Mon, 4 Nov 2024 16:33:30 -0600 Subject: [PATCH] Silence gh warnings re unable to read plugins dir Unlike the errors, these *do* get printed to stderr. --- share/completions/gh.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/completions/gh.fish b/share/completions/gh.fish index 22276ec94..3274daa40 100644 --- a/share/completions/gh.fish +++ b/share/completions/gh.fish @@ -1,6 +1,6 @@ # gh, at least as of version 1.17.5, does not write errors to stderr, causing # `checks/completions.fish` to fail if the `gh-completion` module is missing. # It also does not exit with a non-zero error code, making this harder than it needs to be :( -set completion "$(gh completion --shell fish)" +set completion "$(gh completion --shell fish 2>/dev/null)" string match -rq '^Error' -- $completion && return -1 echo $completion | source