Skip to content

Instantly share code, notes, and snippets.

Created December 2, 2016 09:43
What would you like to do?
fish function to copy lastpass username to the clipboard
function copy-lp-name -d "copy lp name"
if lpass ls | fzf > /tmp/fzf.result
set lp_account (cat /tmp/fzf.result | cut -d ' ' -f 1)
set lp_username (lpass show $lp_account | grep 'Username:' | cut -d ' ' -f 2)
echo -n $lp_username | copy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment