m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/contrib/emacs/README.md
blob: d3679e9814a51629f1695e10f459403f0ed2543b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Emacs password-store

This package provides functions for working with pass ("the standard
Unix password manager").

http://www.zx2c4.com/projects/password-store

## Setup

The pass application must be installed and set up. See the pass
website for instructions

## Example usage

Interactive:

    M-x password-store-insert
    Password entry: foo-account
    Password: ........
    Confirm password: ........

    M-x password-store-copy
    Password entry: foo-account
    Copied password for foo-account to the kill ring. Will clear in 45 seconds.
    Field password cleared.

    M-x password-store-copy-field
    Password entry: foo-account
    Field: username
    Copied username for foo-account to the kill ring. Will clear in 45 seconds.
    Field url cleared.


Lisp:

    (password-store-insert "foo-account" "password")
    (password-store-get "foo-account") ; Returns "password"
    (password-store-get-field "foo-account" "url") ; Returns "url"