From 6cc9bea13492df83aef62c0b109ca22c72afb432 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 21 Sep 2014 19:15:27 +0200 Subject: Alias insert to add. --- man/pass.1 | 3 ++- src/password-store.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/man/pass.1 b/man/pass.1 index 8ac8ecf..0dd6952 100644 --- a/man/pass.1 +++ b/man/pass.1 @@ -99,7 +99,8 @@ read the new password from standard in. If \fI--echo\fP or \fI-e\fP is \fInot\fP disable keyboard echo when the password is entered and confirm the password by asking 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. Prompt -before overwriting an existing password, unless \fI--force\fP or \fI-f\fP is specified. +before overwriting an existing password, unless \fI--force\fP or \fI-f\fP is specified. This +command is alternatively named \fBadd\fP. .TP \fBedit\fP \fIpass-name\fP Insert a new password or edit an existing password using the default text editor specified diff --git a/src/password-store.sh b/src/password-store.sh index 2287a46..c85cc33 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -592,7 +592,7 @@ case "$1" in show|ls|list) shift; cmd_show "$@" ;; find|search) shift; cmd_find "$@" ;; grep) shift; cmd_grep "$@" ;; - insert) shift; cmd_insert "$@" ;; + insert|add) shift; cmd_insert "$@" ;; edit) shift; cmd_edit "$@" ;; generate) shift; cmd_generate "$@" ;; delete|rm|remove) shift; cmd_delete "$@" ;; -- cgit v1.2.3