mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
711 B
711 B
apple-passwords-otp
This plugin adds a function that allows to quickly copy the One-Time-Password (OTP) for a specific domain from Apple Passwords to the clipboard.
To use it, add apple-passwords-otp
to the plugins array of your zshrc file:
plugins=(... apple-passwords-otp)
Functions
otp(domain)
: copies the OTP for the specified domain to the clipboard
Usage
otp domain
Requirements
This plugin depends on the Apple Passwords CLI tool. It can be installed via
Homebrew. Other requirements are jq
to parse json files which can be installed via Homebrew as well. You
need to have Mac OS Sequoia or later to use this plugin.