Skip to content

Instantly share code, notes, and snippets.

@bcremer
Created April 16, 2015 19:39
Show Gist options
  • Save bcremer/0d8eecb15f2887951496 to your computer and use it in GitHub Desktop.
Save bcremer/0d8eecb15f2887951496 to your computer and use it in GitHub Desktop.
Lasspas CLI Fuzzy Select
#!/bin/bash
## Interactive password selection using lastpass-cli and selecta
## the password is written in to the primary clipboard
## https://github.com/lastpass/lastpass-cli
## https://github.com/garybernhardt/selecta
lpass ls | selecta | grep -Po '(?<=(\[id: ))[0-9]*?(?=\])' | xargs lpass show -c --password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment