Skip to content
/ k1pwit Public

k1pwit lets you to directly input passwords using 1Password on iTerm2, not via clipboard, just as though you do on Web browsers.

License

Notifications You must be signed in to change notification settings

kissge/k1pwit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k1pwit: 1Password ❤️ iTerm2

k1pwit lets you to directly input passwords using 1Password on iTerm2, not via clipboard, just as though you do on Web browsers. What k1pwit does is merely typing passwords for you; it just works with any shells, and notably with remote sessions over SSH.

Screen Recording

Install

Prerequisites

Before using k1pwit, you need to set up the following:

  1. iTerm2
  2. op (1Password CLI)
  3. jq
  4. fzf

If you use Homebrew, this is as easy as:

brew install iterm2 1password-cli jq fzf

Setup

  1. git clone (or download ZIP) this repository to wherever you want e.g. ~/k1pwit.
  2. Launch iTerm2, open Preferences (⌘ Comma), and navigate to Profiles > Keys > Key Mappings.
  3. Click + button at the bottom, and add a keyboard shortcut:
    • Keyboard Shortcut: (Whatever you like)
    • Action: Run Coprocess
    • Command: Full path to launch file in the k1pwit directory e.g. ~/k1pwit/launch
  4. Save it, close Preferences and go back to shell.
  5. Set up a config file by running echo "PATH=$PATH" > ~/.k1pwitrc.
  6. If you haven't, initialize 1Password CLI configs by running op account add.

That's it! Now try the keyboard shortcut you've just set up. If everything is configured properly, a small pop-up window should appear.

Configurations

You can put config files in any of the following locations:

  • ${k1pwit directory}/.k1pwitrc
  • ~/.k1pwitrc
  • ~/.config/k1pwit/k1pwitrc

For the available configuration options, you can find hints in lib/load-config.

Prior works

License

k1pwit is licensed under The MIT License.

© 2022 Yusuke Kido.

About

k1pwit lets you to directly input passwords using 1Password on iTerm2, not via clipboard, just as though you do on Web browsers.

Topics

Resources

License

Stars

Watchers

Forks

Languages