Skip to content

Instantly share code, notes, and snippets.

Embed
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
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment