Skip to content

Commit

Permalink
Silence gh warnings re unable to read plugins dir
Browse files Browse the repository at this point in the history
Unlike the errors, these *do* get printed to stderr.
  • Loading branch information
mqudsi committed Nov 4, 2024
1 parent 33a170d commit d7f4ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/completions/gh.fish
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d7f4ad7

Please sign in to comment.