summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-09-21 19:15:27 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-09-21 19:15:27 +0200
commit6cc9bea13492df83aef62c0b109ca22c72afb432 (patch)
tree45f99702056807fc99ad53fedc68d46abc098e19
parent5a6df91e49376c701381b99d89d61af698c98463 (diff)
downloadpass-6cc9bea13492df83aef62c0b109ca22c72afb432.tar.gz
pass-6cc9bea13492df83aef62c0b109ca22c72afb432.tar.bz2
pass-6cc9bea13492df83aef62c0b109ca22c72afb432.zip
Alias insert to add.
Diffstat (limited to '')
-rw-r--r--man/pass.13
-rwxr-xr-xsrc/password-store.sh2
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 "$@" ;;