1Password / shell-plugins

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

Plugins only work inside home directory #407

Open bklebe opened 12 months ago

bklebe commented 12 months ago

op CLI version

2.23.0

Goal or desired behavior

I can use op plugins in any directory on the system.

Current behavior

e.g.

❯ cd ~

~
❯ op plugin inspect gh

GitHub CLI

Configured Aliases

✔ Alias for "gh" configured
✔ Aliases sourced (/Users/bklebe/.config/op/plugins.sh)

Configured Credentials

✔ Configured as global default: 
CREDENTIAL TYPE                 ITEM                            VAULT
GitHub Personal Access Token    GitHub Personal Access Token    Private

~
❯ cd /

/
❯ op plugin inspect gh 

GitHub CLI

Configured Aliases

✔ Alias for "gh" configured
✔ Aliases sourced (/Users/bklebe/.config/op/plugins.sh)

Configured Credentials
<the command hangs, op shows over 100% CPU usage in Activity Monitor>
^C

/
❯ 

Relevant log output

No response

lukas-jansen commented 9 months ago

I got the same issue, only works in my home directory

biaojiang commented 2 weeks ago

CLI 2.30.0 still has this problem. I just found the solution here that it needs to be in the home directory. The following two commands will hang if in other directories, but it doesn't affect the development.

op plugin inspect gh
op plugin clear gh