All Projects â†’ yardnsm â†’ Tmux 1password

yardnsm / Tmux 1password

Licence: mit
🔑 Access your 1Password login items within tmux!

Programming Languages

shell
77523 projects

Labels

Projects that are alternatives of or similar to Tmux 1password

dotfiles
i3, Vim, Bash, Ruby, Typescript & React, Elixir, Golang & more!
Stars: ✭ 22 (-86.83%)
Mutual labels:  tmux, fzf
viconf
My (n)Vim config files
Stars: ✭ 18 (-89.22%)
Mutual labels:  tmux, fzf
jq-zsh-plugin
jq zsh plugin
Stars: ✭ 155 (-7.19%)
Mutual labels:  fzf, jq
tmuxinator-fzf-start
Uses fzf to provide a selection list for starting tmuxinator projects
Stars: ✭ 31 (-81.44%)
Mutual labels:  tmux, fzf
Dotfiles
My dotfiles 🚀. Includes configs for neovim, tmux, zsh, alacritty and more.
Stars: ✭ 47 (-71.86%)
Mutual labels:  fzf, tmux
dotstow
dotfiles managed with stow
Stars: ✭ 60 (-64.07%)
Mutual labels:  tmux, fzf
tmuxjump.vim
A plugin to open file from file paths printed in sibling tmux pane
Stars: ✭ 50 (-70.06%)
Mutual labels:  tmux, fzf
Black Void Zsh
🔮 Awesome, Customable Zsh Starter Kit 🌠🌠
Stars: ✭ 206 (+23.35%)
Mutual labels:  fzf, tmux
Fzf Tab
Replace zsh's default completion selection menu with fzf!
Stars: ✭ 761 (+355.69%)
Mutual labels:  fzf, tmux
Jarvis
Dotfiles for a powerful, web development-focused environment powered by Neovim, iTerm2, tmux, and zsh
Stars: ✭ 617 (+269.46%)
Mutual labels:  fzf, tmux
nvim configration
Neovim diy develop enviroment.This project integrates neovim tmux zsh and some very useful plugs of them including YouCompleteMe FZF auto pairs nerdtree ncm2 and so on.
Stars: ✭ 22 (-86.83%)
Mutual labels:  tmux, fzf
Fzf
🌸 A command-line fuzzy finder
Stars: ✭ 40,965 (+24429.94%)
Mutual labels:  fzf, tmux
dotfiles
No description or website provided.
Stars: ✭ 20 (-88.02%)
Mutual labels:  tmux, fzf
dotfiles
mac OS, Arch Linux, and Debian/Ubuntu
Stars: ✭ 286 (+71.26%)
Mutual labels:  tmux, fzf
Tmux Fzf Url
🚀 Quickly open urls on your terminal screen!
Stars: ✭ 227 (+35.93%)
Mutual labels:  fzf, tmux
dotfiles
shell, git, vim, tmux .etc dotfiles, managed via gnu stow
Stars: ✭ 20 (-88.02%)
Mutual labels:  tmux, fzf
Tmux Fzf
Use fzf to manage your tmux work environment!
Stars: ✭ 266 (+59.28%)
Mutual labels:  fzf, tmux
Dotfiles
Workstation configuration, provisioning and tools
Stars: ✭ 67 (-59.88%)
Mutual labels:  fzf, tmux
Dots
Personal *nix configuration files
Stars: ✭ 136 (-18.56%)
Mutual labels:  fzf, tmux
Tmux Yank
Tmux plugin for copying to system clipboard. Works on OSX, Linux and Cygwin.
Stars: ✭ 1,941 (+1062.28%)
Mutual labels:  tmux

tmux-1password

Build Status

Access your 1Password login items within tmux!

This plugin allows you to access you 1Password items within tmux, using 1Password's CLI. It works for personal 1Password accounts, as well as teams accounts.

Requirements

This plugin relies on the following:

Key bindings

In any tmux mode:

  • prefix + u - list login items in a bottom pane.

Install

Using Tmux Plugin Manager (recommended)

  1. Add plugin to the list of TPM plugins in .tmux.conf:

    set -g @plugin 'yardnsm/tmux-1password'
    
  2. Hit prefix + I to fetch the plugin and source it. You should now be able to use the plugin.

Manual Installation

  1. Clone this repo:

    $ git clone https://github.com/yardnsm/tmux-1password ~/some/path
    
  2. Source the plugin in your .tmux.conf by adding the following to the bottom of the file:

    run-shell ~/some/path/plugin.tmux
    
  3. Reload the environment by running:

    $ tmux source-file ~/.tmux.conf
    

Usage

First, sign in with 1Password CLI by running the following in your terminal (you only need to do this once):

$ op signin <signinaddress> <emailaddress> <secretkey>

For 1Password personal accounts, <signinaddress> should be my.1password.com. If you're using a team account, configure the @1password-subdomain option.

From now on, initiate the plugin by using the keybind (prefix + u by default). A new pane will be opened in the bottom, listing the appropriate login items. Press <Enter> to choose a login item, and its password will automatically be filled.

You may be required to perform a re-login (directly in the opened pane) since the 1Password CLI's sessions expires automatically after 30 minutes of inactivity.

Configuration

Customize this plugin by setting these options in your .tmux.conf file. Make sure to reload the environment afterwards.

Changing the default key-binding for this plugin

set -g @1password-key 'x'

Default: 'u'

Setting the signin subdomain

set -g @1password-subdomain 'acme'

Default: 'my'

Setting the default vault

set -g @1password-vault 'work'

Default: '' (all vaults)

Copy the password to clipboard

By default, the plugin will use send-keys to send the selected password to the targeted pane. By setting the following, the password will be copied to the system's clipboard, which will be cleared after 30 seconds.

set -g @1password-copy-to-clipboard 'on'

Default: 'off'

Customize URL Filtering

By default, all of the items will be shown. If complete customization of url filtering is required, a jq filter can be provided to filter and map items.

Items come in the following format from which the filter operates:

[
  {
    "uuid": "some-long-uuid",
    "overview": {
      "URLs": [
        { "u": "sudolikeaboss://local" }
      ],
      "title": "Some item",
      "tags": ["some_tag"]
    }
  }
]

Default: ''

Examples

Filtering by tags

The following example will filter only the items that has a tag with a value of some_tag.

set -g @1password-items-jq-filter '
  .[] \
  | [select(.overview.tags | map(select(. == "some_tag")) | length == 1)?] \
  | map([ .overview.title, .uuid ] \
  | join(",")) \
  | .[] \
'
Filtering by custom url

The following example will filter only the items that has a website field with the value of sudolikeaboss://local, similar to the way sudolikeaboss used to work.

set -g @1password-items-jq-filter ' \
  .[] \
  | [select(.overview.URLs | map(select(.u == "sudolikeaboss://local")) | length == 1)?] \
  | map([ .overview.title, .uuid ] \
  | join(",")) \
  | .[] \
'

Prior art

Also see:


License

MIT © Yarden Sod-Moriah

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].