kalsowerus / zsh-bitwarden

Simple zsh-plugin that adds keybinds to easily search and retrieve Bitwarden usernames/passwords.
MIT License
12 stars 1 forks source link
antigen zsh zsh-plugin

Dependencies

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

Keys Action
alt+U Get username
alt+P Get password
ctrl+U Copy username
ctrl+P Copy 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)