1Password / shell-plugins

Seamless authentication for every tool in your terminal.
https://developer.1password.com/docs/cli/shell-plugins/
MIT License
519 stars 170 forks source link

github plugin does not honor the GH_CONFIG_DIR env var or search all the possible paths for the config file. #411

Open eedgar opened 10 months ago

eedgar commented 10 months ago

op CLI version

2.22

Goal or desired behavior

GH_CONFIG_DIR: the directory where gh will store configuration files. If not specified, the default value will be one of the following paths (in order of precedence):

as shown in the gh environments command currently only the last search place of $HOME/.config/gh is shown

it should search all the possible places for importing the token

This issue only impacts import as the plugin uses env vars otherwise.

Current behavior

only $HOME/.config/gh is searched

Relevant log output

No response