MIT License

项目介绍

yardnsm/tmux-1password 是一个托管在 GitHub 上的开源项目,主要使用 Shell 编写,采用 MIT License 许可证,目前获得 277 个 Star、24 次 Fork。

仓库全名
yardnsm/tmux-1password
开源许可证
MIT License
Star 数
277
Fork 数
24
未关闭 Issue
3

README 摘要

tmux-1password Access your 1Password login items within tmux! https://user-images.githubusercontent.com/11786506/159118616-9983fca2-edb5-4d0b-b827-43088e84d2c8.mp4 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: 1Password CLI >= 2.0.0 fzf jq Key bindings In…

完整内容见 GitHub 原始 README 或本页 。

常见问题

tmux-1password 用什么语言开发?

主要使用 Shell 编写,采用 MIT License 许可证,目前有 277 个 Star。

tmux-1password 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 tmux-1password 的源码?

可以直接克隆仓库:git clone https://github.com/yardnsm/tmux-1password.git,默认分支为 master;安装与运行步骤见仓库 README。

tmux-1password 最近还在维护吗?

仓库最近一次更新为 2025年5月23日,当前有 3 个未关闭 Issue;Star 数为 277,可作为社区活跃度的参考。

关于

:key: Access your 1Password login items within tmux!

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
327
价值分
173
活跃状态
活跃

语言占比

Shell

README

tmux-1password

Build Status

Access your 1Password login items within tmux!

https://user-images.githubusercontent.com/11786506/159118616-9983fca2-edb5-4d0b-b827-43088e84d2c8.mp4

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

  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
    

Using older versions of 1Password’s CLI

If you’re using an older version of the CLI (< 2.0), you can use this plugin via the legacy branch. For example, using TPM:

set -g @plugin 'yardnsm/tmux-1password#legacy'

Usage

Initiate the plugin by using the keybind (prefix + u by default). If you haven’t added an account to the 1Password’s CLI, the plugin will prompt you to add one. You can also manage your connected accounts manually using the op account command.

Once you have an account, while initiating the plugin 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 can also press Ctrl+u while hovering an item to fill a One-Time Password.

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.

Biometric Unlock

For supported systems, you can enable signing in with biometric unlock. When biometric unlock is enabled, you’ll be prompted to authorize using it when then plugin is being initiated.

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 sign-in account

1Password’s CLI allows signing in with multiple accounts, while this plugin is able to work against a single one. You can specify which account to use using this option.

As per the documentation, you can use the shorthand, sign-in address, or account ID to refer to a specific account.

set -g @1password-account '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'

Filter items via tags

By default, all of the items will be shown. You can use this option (comma-separated) if you want to list items that has specific tags.

set -g @1password-filter-tags 'development,servers'

Default: '' (no tag filtering)

Debug mode

If you’re having any trouble with the plugin and would like to debug it’s output in a more convenient way, this option will prevent the pane from being closed.

set -g @1password-debug 'on'

# Or running the following withing tmux:
tmux set-option -g @1password-debug "on"

Prior art

Also see:


License

MIT © Yarden Sod-Moriah

评论

暂无评论