Skip to content

Instantly share code, notes, and snippets.

@gizmomogwai
Created December 2, 2016 09:43
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