Skip to main content
January 16, 2023
Question

how to fix command not found: op in .zshenv

  • January 16, 2023
  • 1 reply
  • 1891 views

op --version returns the version properly,

however when i add it in .zshenv
eval "$(op signin)"

it says command not found:op when i start terminal


1Password Version: Not Provided
Extension Version: 2.12.0
OS Version: macOS 13.0.1, M2 chip
Browser:_ CLI, zsh, iterm

1 reply

Jack_P_1P
1Password Employee
January 18, 2023

Hi @livytl:

Are you running the eval "$(op signin)" command prior to a command that would add the op executable to your PATH environment variable? If that's the case, you'll need to re-arrange your .zshenv order to ensure that PATH contains op before trying to use the eval command. Let me know how you get on with that.

Jack