mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
docs: add instructions to get pw from environment variable
tested with vdirsyncer 0.19.2 on archlinux
This commit is contained in:
parent
82fd03be64
commit
d1f93ea0be
1 changed files with 16 additions and 0 deletions
|
|
@ -78,3 +78,19 @@ You can also simply prompt for the password::
|
||||||
type = "caldav"
|
type = "caldav"
|
||||||
username = "myusername"
|
username = "myusername"
|
||||||
password.fetch = ["prompt", "Password for CalDAV"]
|
password.fetch = ["prompt", "Password for CalDAV"]
|
||||||
|
|
||||||
|
Environment variable
|
||||||
|
===============
|
||||||
|
|
||||||
|
To read the password from an environment variable::
|
||||||
|
|
||||||
|
[storage foo]
|
||||||
|
type = "caldav"
|
||||||
|
username = "myusername"
|
||||||
|
password.fetch = ["command", "printenv", "DAV_PW"]
|
||||||
|
|
||||||
|
This is especially handy if you use the same password multiple times
|
||||||
|
(say, for a CardDAV and a CalDAV storage).
|
||||||
|
On bash, you can read and export the password without printing::
|
||||||
|
|
||||||
|
read -s DAV_PW "DAV Password: " && export DAV_PW
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue