]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/1password/README.md
f6854da533e4e56cde42011a97dc155a912b2623
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / 1password / README.md
1 # 1Password
2
3 This plugin adds 1Password functionality to oh-my-zsh.
4
5 To use, add `1password` to the list of plugins in your `.zshrc` file:
6
7 ```zsh
8 plugins=(... 1password)
9 ```
10
11 Then, you can use the command `opswd` to copy passwords for services into your
12 clipboard.
13
14 ## `opswd`
15
16 The `opswd` command is a wrapper around the `op` command. It takes a service
17 name as an argument and copies the password for that service to the clipboard.
18
19 If the service also contains a TOTP, it is copied to the clipboard after 10 seconds.
20 Finally, after 20 seconds, the clipboard is cleared.
21
22 The function has completion support, so you can use tab completion to select
23 which service you want to get.
24
25 For example, `opswd github.com` will put your GitHub password into your clipboard, and if
26 a TOTP is available, it will be copied to the clipboard after 10 seconds.
27
28 > NOTE: you need to be signed in for `opswd` to work. If you are using biometric unlock,
29 > 1Password CLI will automatically prompt you to sign in. See:
30 >
31 > - [Get started with 1Password CLI 2: Sign in](https://developer.1password.com/docs/cli/get-started#sign-in)
32 > - [Sign in to your 1Password account manually](https://developer.1password.com/docs/cli/sign-in-manually)
33
34 ## Requirements
35
36 - [1Password CLI 2](https://developer.1password.com/docs/cli/get-started#install)
37
38   > NOTE: if you're using 1Password CLI 1, [see how to upgrade to CLI 2](https://developer.1password.com/docs/cli/upgrade).