diff --git a/win/Modules/Pass/Pass.psm1 b/win/Modules/Pass/Pass.psm1 index 0a5a01d..8896a90 100644 --- a/win/Modules/Pass/Pass.psm1 +++ b/win/Modules/Pass/Pass.psm1 @@ -141,5 +141,15 @@ function Find-Pass { } } -Export-ModuleMember -Function Edit-Pass,New-Pass,Get-Pass,Find-Pass +function Find-Login { + $selected = FzfPass + + if ($selected) { + $login = Split-Path -Leaf $selected + Write-Host $login + Set-Clipboard $login + } +} + +Export-ModuleMember -Function Edit-Pass,New-Pass,Get-Pass,Find-Pass,Find-Login