shell-plugins icon indicating copy to clipboard operation
shell-plugins copied to clipboard

Plugins only work inside home directory

Open beatrixada opened this issue 2 years ago • 5 comments

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

beatrixada avatar Nov 30 '23 20:11 beatrixada

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

lukas-jansen avatar Feb 15 '24 11:02 lukas-jansen

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

biaojiang avatar Nov 05 '24 22:11 biaojiang