|author||Jason A. Donenfeld <Jason@zx2c4.com>||2012-09-11 04:50:41 +0200|
|committer||Jason A. Donenfeld <Jason@zx2c4.com>||2012-09-11 05:02:19 +0200|
|parent||default to 'show' command for zsh completion (diff)|
Add an edit mode that uses $EDITOR.
This allows users to edit password files using temporary files created in /dev/shm. This commit also tidies other things up and fixes minor bugs and griviences that should be separate commits but aren't. Reported-by: rupa <email@example.com>
Diffstat (limited to 'man')
1 files changed, 9 insertions, 0 deletions
@@ -77,6 +77,15 @@ disable keyboard echo when the password is entered and confirm the password by a
for it twice. If \fI--multiline\fP or \fI-m\fP is specified, lines will be read until
EOF or Ctrl+D is reached. Otherwise, only a single line from standard in is read.
+Insert a new password or edit an existing password using the default text editor specified
+by the environment variable \fBEDITOR\fP or using
+.BR vi (1)
+as a fallback. This mode makes use of temporary files for editing, but care is taken to
+ensure that temporary files are created in \fB/dev/shm\fP in order to avoid writing to
+difficult-to-erase disk sectors. If \fB/dev/shm\fP is not accessible, fallback to
+the ordinary \fBTMPDIR\fP location, and print a warning.
\fBgenerate\fP [ \fI--no-symbols\fP, \fI-n\fP ] [ \fI--clip\fP, \fI-c\fP ] \fIpass-name pass-length\fP
Generate a new password using
.BR pwgen (1)