mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Silence gh warnings re unable to read plugins dir
Unlike the errors, these *do* get printed to stderr.
This commit is contained in:
parent
33a170d614
commit
d7f4ad7ab8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue