fish function to combine lpass with fzf and pbcopy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function up -d "lastpass user and password" | |
if lpass ls | fzf > /tmp/fzf.result | |
cat /tmp/fzf.result | |
set account_name (cat /tmp/fzf.result | cut -f 1 -d ' ') | |
lpass show --username $account_name | pbcopy | |
read -p 'echo username stored in clipboard ... press return to continue' | |
lpass show --password $account_name | pbcopy | |
read -p 'echo password stored in clipboard ... press return to continue' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment