Dependencies

March 15, 2022 ยท View on GitHub

  • Bitwarden CLI
  • jq
  • fzf
  • Oh My Zsh (if ZSH_BITWARDEN_COPY_CMD is not set)

Install (Antigen)

# Requires oh-my-zsh unless ZSH_BITWARDEN_COPY_CMD is set
antigen use oh-my-zsh

antigen bundle kalsowerus/zsh-bitwarden

Usage

Opens a fzf widget containing your Bitwarden vault items. Upon selecting an item either the username or password will be either written into the shell or copied into the clipboard.

Shares the Bitwarden session across terminal sessions.

Key bindings

KeysAction
alt+UGet username
alt+PGet password
ctrl+UCopy username
ctrl+PCopy password

Configuration

ZSH_BITWARDEN_COPY_CMD

Contains the command used to copy a username/password to the clipboard. The username/password will be piped to the command.

Default: clipcopy

ZSH_BITWARDEN_GET_USERNAME_KEY

The key to "get" a username.

Default: ^[u (alt+U)

ZSH_BITWARDEN_GET_PASSWORD_KEY

The key to "get" a password.

Default: ^[p (alt+P)

ZSH_BITWARDEN_COPY_USERNAME_KEY

The key to copy a username to the clipboard.

Default ^U (ctrl+U)

ZSH_BITWARDEN_COPY_PASSWORD_KEY

The key to copy a password to the clipboard.

Default: ^P (ctrl+P)