shell-plugins
shell-plugins copied to clipboard
Plugins only work inside home directory
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
I got the same issue, only works in my home directory
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