Rename selectPassword to copyPassword
This commit is contained in:
parent
1fba240b51
commit
c0dba2d167
1 changed files with 3 additions and 4 deletions
|
@ -33,7 +33,7 @@ passGeneratePrompt :: XPConfig -> X ()
|
|||
passGeneratePrompt _ = return () -- Not implemented
|
||||
|
||||
passPrompt :: XPConfig -> X ()
|
||||
passPrompt = mkPassPrompt "Select password" selectPassword
|
||||
passPrompt = mkPassPrompt "Select password" copyPassword
|
||||
|
||||
mkPassPrompt :: String -> (String -> X ()) -> XPConfig -> X ()
|
||||
mkPassPrompt label f conf = do
|
||||
|
@ -51,6 +51,5 @@ mkPassPrompt label f conf = do
|
|||
files <- runProcessWithInput "find" [ passwordStoreDir, "-type", "f", "-name", "*.gpg", "-printf", "%p\n"] []
|
||||
return . lines $ files
|
||||
|
||||
selectPassword :: String -> X ()
|
||||
selectPassword pass = spawn $ "gpg --decrypt " ++ pass ++ " | /home/eeva/.nix-profile/bin/copy"
|
||||
|
||||
copyPassword :: String -> X ()
|
||||
copyPassword pass = spawn $ "gpg --decrypt " ++ pass ++ " | /home/eeva/.nix-profile/bin/copy"
|
||||
|
|
Loading…
Reference in a new issue