GithubHelp home page GithubHelp logo

tmux-bitwarden's Introduction

tmux-bitwarden

Requirements

You need to have:

# bitwarden cli
npm install -g @bitwarden/cli

# macos
brew install jq
brew install fzf
btew install bash # make sure bash > 4.0

Install

Tmux Plugin Manager (recommended)

  1. In your .tmux.conf add the plugin to the list.
set -g @plugin 'ted-vo/tmux-bitwarden'
  1. Type prefix + I to install the plugin.

Key bindings

  • prefix + b: list login items in a bottom pane.

Usage

First, log into your Bitwarden user account using the login command (you only need to do this once):

$ bw login [email protected]
? Master password: [input is hidden]
To unlock your vault, set your session key to the `BW_SESSION` environment variable. ex:
$ export BW_SESSION="lpvf7Rt+pAMXW2YJ5O42jJp6ZY0Ny01vq9jaUdFYbroS1CXWgjVdy7j42owHVoLwZf+yDI+ro68Qngo9mdD/vA=="
> $env:BW_SESSION="lpvf7Rt+pAMXW2YJ5O42jJp6ZY0Ny01vq9jaUdFYbroS1CXWgjVdy7j42owHVoLwZf+yDI+ro68Qngo9mdD/vA=="

In a tmux session, you can run the plugin with the default key binding prefix + b. This opens a new pane at the bottom with login items. You can choose your login item with <Enter>, your password will be automatically filled.

If you have not configured your bitwarden session (BW_SESSION), you will be prompted to re-enter your master password before each selection (see configuration section for more information)

Configuration

Changing the default key-binding

set -g @bw-key 'T'

Default: b

Define Bitwarden session

To avoid re-entering your master password before each selection, you can define your session Bitwarden. Your BW_SESSION comes from the result of the login command.

set -g @bw-session 'BW_SESSION'

If the BW_SESSION variable exists in your environment variable (load from root shell) then it will be used.

Copy the password to the clipboard

By default, after selection, the password is sent in the last pane. If you want to have it in your clipboard you have to activate the option:

set -g @bw-copy-to-clipboard 'on'

Default: off

tmux-bitwarden's People

Contributors

alkindi42 avatar jackdbrowne avatar ted-vo avatar

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.