Skip to content

DagHemberg/pw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pw

pw showcase with profile specification

pw is a small collection of scripts for picking passwords or other values from your Bitwarden / Vaultwarden items, directly in your terminal.

Under the hood it uses rbw as the password manager CLI, fzf as the picker / fuzzy finder, jq for the preview window and fx for more detailed inspection of items in your vault (which can then be used to copy values which don't have pre-set shortcut keys)

Requirements

  • rbw
  • fzf
  • jq
  • fx
  • A clipboard CLI utility

For information on how to install each required program, please refer to their respective pages.1

Installation

$ git clone git@github.com/daghemberg/pw.git
$ cd pw
$ chmod +x ./pw.sh
$ sudo ln -s "$(pwd -P)/pw.sh" /usr/local/bin/pw
# on macOS:
$ sudo chmod -h +x /usr/local/bin/pw

Usage

# open the picker
$ pw

# specify RBW_PROFILE
$ pw --profile work
$ pw -p work

While in the picker, the following keybinds apply:

Key Action
enter Copy password2
ctrl+u Copy username
ctrl+t Copy TOTP code
ctrl+p Open item in fx

Footnotes

  1. Depending on your DE / WM / OS, a clipboard CLI utility should likely already come preinstalled -- this script checks for wl-copy (Wayland), xclip (X11), pbcopy (macOS) and clip.exe (WSL, through Windows interop)

  2. This has slightly different behaviour depending of the type of the item; for normal login items the password is copied, but for cards it's instead the card number, and for identities it's the full name.

About

A small utility script for picking passwords in your terminal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors