Skip to content

Instantly share code, notes, and snippets.

@gizmomogwai
Created May 31, 2016
Embed
What would you like to do?
fish function to combine lpass with fzf and pbcopy
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