5KERTK24BRCTXLSFWTOMBAWWVN7C6A2M4KKE5FPARSLBONOUUJRAC VXESMJDKIRYTNWV6PVDZUSECSP7ESMK5LZPEE72DFBUU5MH7GWLAC 7FLSG227WKQITK7JMMWMYH4F6NRX3WIHMVOEVE22H73HE2NRXGYAC 57YU55IK55Q4QDV45LD3ILNQDQV46NKLYK3HS6VWR2SDTOFSYXKAC TMO3SOZBNVAM5QFULQWSGJEODJ2MRY5EJSG2WGV6MIAPKF5YDMEAC M72NJNKSF6J3YGW3LDTKZKSUDYYWRJC77EHFCCCBYUIDJU66M6XQC QRSG7RJSX5R255Y2HHTLYBXMBR374QS3PV2UJDWK2ZPMG7V66SSAC MWV72ACT6D63U5I4UUNIO4WK7ZN3Q5WYRI72K3DCKCNWZ22QUR5AC #! /usr/bin/env zsh# try to find it by name explicitlylocal lpass_result=$(lpass show -p -G "$@" 2> /dev/null)local multiple_matches=$(echo "$lpass_result" | grep -io "multiple matches found")if [[ multiple_matches = "" ]];thenecho $lpass_resultelse# otherwise list all lastpass entries filtered by grep regex and fuzzy find multiple matches in fzfif [[ "$@" = "" ]];thenlpass show -p "$(lpass ls | fzf | grep -Eo 'id: [0-9]+' | cut -d ' ' -f 2)"elselpass show -p "$(lpass ls | grep -i -E "$@" | fzf | grep -Eo 'id: [0-9]+' | cut -d ' ' -f 2)"fifi
# https://github.com/dmaasland/lastpass-authenticator-export{ pkgs, ... }:with pkgs;python39Packages.buildPythonApplication rec {pname = "lastpass-authenticator-export";version = "unstable-2022-03-31";src = fetchFromGitHub {owner = "dmaasland";repo = "lastpass-authenticator-export";rev = "154422b60152f328435e71bed722be5788808486";sha256 = "sha256-CmNBrEFuwWCdFijU5VUzg/zzLQ2ALaIjAWKtAZnehes=";};setup = ''from setuptools import find_packages, setupsetup(name="${pname}",version="${version}",py_modules=["lastpass_authenticator_export"],entry_points={"console_scripts": ["lastpass_authenticator_export = lastpass_authenticator_export:main"]},pacakges=find_packages(),)'';postUnpack = ''echo '${setup}' > $sourceRoot/setup.pymv $sourceRoot/lastpass-authenticator-export.py $sourceRoot/lastpass_authenticator_export.py'';propagatedBuildInputs = with python39Packages; [requestspycryptodomeqrcodepyotp];}