Created
May 31, 2016 21:44
-
-
Save gizmomogwai/c102c72c014388c8c2b65ba3fbc2a902 to your computer and use it in GitHub Desktop.
fish function to combine lpass with fzf and pbcopy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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