tadfisher / pass-otp

A pass extension for managing one-time-password (OTP) tokens
GNU General Public License v3.0
1.28k stars 85 forks source link

MacOS Mojave - Error: otp is not in the password store. #104

Closed wenindoubt closed 5 years ago

wenindoubt commented 5 years ago

My versions are as follows:

$ brew info pass

pass: stable 1.7.3 (bottled), HEAD
Password manager
https://www.passwordstore.org/
/usr/local/Cellar/pass/1.7.3 (34 files, 147KB) *
  Poured from bottle on 2018-10-02 at 07:55:39
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/pass.rb
==> Dependencies
Required: gnu-getopt ✔, gnupg ✔, qrencode ✔, tree ✔
==> Options
--HEAD
    Install HEAD version
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completions have been installed to:
  /usr/local/share/zsh/site-functions

fish completions have been installed to:
  /usr/local/share/fish/vendor_completions.d
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/pass
==> Analytics
install: 2,150 (30 days), 6,295 (90 days), 31,640 (365 days)
install_on_request: 2,080 (30 days), 6,045 (90 days), 29,217 (365 days)
build_error: 0 (30 days)
$ brew info pass-otp

pass-otp: stable 1.2.0 (bottled)
The Pass extension for managing one-time-password (OTP) tokens
https://github.com/tadfisher/pass-otp#readme
/usr/local/Cellar/pass-otp/1.2.0 (8 files, 66.2KB) *
  Poured from bottle on 2019-03-01 at 22:33:44
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/pass-otp.rb
==> Dependencies
Required: oath-toolkit ✔, pass ✔
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Analytics
install: 85 (30 days), 206 (90 days), 236 (365 days)
install_on_request: 85 (30 days), 206 (90 days), 236 (365 days)
build_error: 0 (30 days)

I am on MacOS Mojave 10.14.3 running zsh 5.6.2.

I am unable to run any commands per the README.

$ pass otp example-name
Error: otp is not in the password store.

$ pass otp insert example-name
Error: otp is not in the password store.
avioli commented 5 years ago

I had the same issue. Unsure about zsh, but in bash i've added these to my ~/.bash_profile (and sourced the file):

export PASSWORD_STORE_ENABLE_EXTENSIONS=true
export PASSWORD_STORE_EXTENSIONS_DIR=/usr/local/lib/password-store/extensions
wenindoubt commented 5 years ago

I had the same issue. Unsure about zsh, but in bash i've added these to my ~/.bash_profile (and sourced the file):

export PASSWORD_STORE_ENABLE_EXTENSIONS=true
export PASSWORD_STORE_EXTENSIONS_DIR=/usr/local/lib/password-store/extensions

This works!