GithubHelp home page GithubHelp logo

unixorn / 1password-op.plugin.zsh Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 1.0 29 KB

ZSH plugin to load completions and aliases for 1Password's `op` tool

License: Apache License 2.0

Shell 100.00%
zsh zsh-completion 1password 1password-cli

1password-op.plugin.zsh's Introduction

1password-op.plugin.zsh

License Build Status Awesomebot Megalinter

Table of Contents

Description

1Password has a command line tool, op, 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

  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)

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.