https://github.com/unixorn/1password-op.plugin.zsh
ZSH plugin to load completions and aliases for 1Password's `op` tool
https://github.com/unixorn/1password-op.plugin.zsh
1password 1password-cli zsh zsh-completion
Last synced: 3 months ago
JSON representation
ZSH plugin to load completions and aliases for 1Password's `op` tool
- Host: GitHub
- URL: https://github.com/unixorn/1password-op.plugin.zsh
- Owner: unixorn
- License: apache-2.0
- Created: 2022-03-19T02:25:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-03T13:54:14.000Z (10 months ago)
- Last Synced: 2025-03-18T13:51:25.621Z (4 months ago)
- Topics: 1password, 1password-cli, zsh, zsh-completion
- Language: Shell
- Homepage:
- Size: 31.3 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 1password-op.plugin.zsh
[](https://opensource.org/license/apache-2-0/)
[](https://actions-badge.atrox.dev/unixorn/1password-op.plugin.zsh/goto?ref=main)

## Table of Contents
- [Description](#description)
- [Installation](#installation)
- [Oh-My-Zsh](#oh-my-zsh)
- [Zgenom](#zgenom)
- [Contributors](#contributors)## Description
1Password has a command line tool, [op](https://developer.1password.com/docs/cli/get-started/), for accessing secrets in your vaults.
This plugin loads the completions for `op` and its subcommands if it finds `op` in your `$PATH`. It has only been tested on `op` version 2, but should work with version 1 as well.
The plugin does lazy loading of the `op` completions, and updates them every 5 days by default. If you want a different interval, set `OP_COMPLETIONS_REFRESH_TIME` using standard `find` time syntax - to set it to replace the completions file every 3 days, for example, you'd set it to `+3d`.
## Installation
### [Oh-My-Zsh](http://ohmyz.sh/)
1. `cd ~/.oh-my-zsh/custom/plugins`
2. `git clone [email protected]:unixorn/1password-op.plugin.zsh.git 1password-op`
3. Add `1password-op` to your plugin list - edit `~.zshrc` and change `plugins=(...)` to `plugins=(... 1password-op)`### [Zgenom](https://github.com/jandamm/zgenom)
Add `zgenom load unixorn/1password-op.plugin.zsh` to your `.zshrc` file in the same function you're doing your other `zgenom load` calls in. Zgenom will handle automatically cloning the plugin for you the next time you do a `zgenom save`.
## Contributors
Made with [contributors-img](https://contributors-img.web.app).