Skip to content

Instantly share code, notes, and snippets.

@gizmomogwai
Created May 31, 2016 21:44
Show Gist options
  • Save gizmomogwai/c102c72c014388c8c2b65ba3fbc2a902 to your computer and use it in GitHub Desktop.
Save gizmomogwai/c102c72c014388c8c2b65ba3fbc2a902 to your computer and use it in GitHub Desktop.
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