summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-03-23 05:41:40 -0300
committerJason A. Donenfeld <Jason@zx2c4.com>2014-03-23 05:41:40 -0300
commit6fb1b95c6357a23a855cfb26f09c836df55f8dd6 (patch)
tree0c4ad6e6a5cd962cd2b82513a5cf8de3ab9e1c4f /src
parent64d0f105d588f32de7ffc30068b6d000504dc8b9 (diff)
downloadpass-6fb1b95c6357a23a855cfb26f09c836df55f8dd6.tar.gz
pass-6fb1b95c6357a23a855cfb26f09c836df55f8dd6.tar.bz2
pass-6fb1b95c6357a23a855cfb26f09c836df55f8dd6.zip
Heredoc refresh.
Diffstat (limited to '')
-rwxr-xr-xsrc/password-store.sh88
1 files changed, 45 insertions, 43 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index 8af232f..f2ec8ec 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -19,52 +19,54 @@ export GIT_WORK_TREE="${PASSWORD_STORE_GIT:-$PREFIX}"
version() {
- cat <<_EOF
-|-----------------------|
-| Password Store |
-| v.1.5 |
-| by zx2c4 |
-| |
-| Jason@zx2c4.com |
-| Jason A. Donenfeld |
-|-----------------------|
-_EOF
+ cat <<-_EOF
+ ============================================
+ = pass: the standard unix password manager =
+ = =
+ = v1.5 =
+ = =
+ = Jason A. Donenfeld =
+ = Jason@zx2c4.com =
+ = =
+ = http://zx2c4.com/projects/password-store =
+ ============================================
+ _EOF
}
usage() {
version
- cat <<_EOF
-
-Usage:
- $program init [--reencrypt,-e] [--path=subfolder,-p subfolder] gpg-id...
- Initialize new password storage and use gpg-id for encryption.
- Optionally reencrypt existing passwords using new gpg-id.
- $program [ls] [subfolder]
- List passwords.
- $program [show] [--clip,-c] pass-name
- Show existing password and optionally put it on the clipboard.
- If put on the clipboard, it will be cleared in $CLIP_TIME seconds.
- $program insert [--echo,-e | --multiline,-m] [--force,-f] pass-name
- Insert new password. Optionally, echo the password back to the console
- during entry. Or, optionally, the entry may be multiline. Prompt before
- overwriting existing password unless forced.
- $program edit pass-name
- Insert a new password or edit an existing password using ${EDITOR:-vi}.
- $program generate [--no-symbols,-n] [--clip,-c] [--force,-f] pass-name pass-length
- Generate a new password of pass-length with optionally no symbols.
- Optionally put it on the clipboard and clear board after 45 seconds.
- Prompt before overwriting existing password unless forced.
- $program rm [--recursive,-r] [--force,-f] pass-name
- Remove existing password or directory, optionally forcefully.
- $program git git-command-args...
- If the password store is a git repository, execute a git command
- specified by git-command-args.
- $program help
- Show this text.
- $program version
- Show version information.
-
-More information may be found in the pass(1) man page.
-_EOF
+ echo
+ cat <<-_EOF
+ Usage:
+ $program init [--reencrypt,-e] [--path=subfolder,-p subfolder] gpg-id...
+ Initialize new password storage and use gpg-id for encryption.
+ Optionally reencrypt existing passwords using new gpg-id.
+ $program [ls] [subfolder]
+ List passwords.
+ $program [show] [--clip,-c] pass-name
+ Show existing password and optionally put it on the clipboard.
+ If put on the clipboard, it will be cleared in $CLIP_TIME seconds.
+ $program insert [--echo,-e | --multiline,-m] [--force,-f] pass-name
+ Insert new password. Optionally, echo the password back to the console
+ during entry. Or, optionally, the entry may be multiline. Prompt before
+ overwriting existing password unless forced.
+ $program edit pass-name
+ Insert a new password or edit an existing password using ${EDITOR:-vi}.
+ $program generate [--no-symbols,-n] [--clip,-c] [--force,-f] pass-name pass-length
+ Generate a new password of pass-length with optionally no symbols.
+ Optionally put it on the clipboard and clear board after 45 seconds.
+ Prompt before overwriting existing password unless forced.
+ $program rm [--recursive,-r] [--force,-f] pass-name
+ Remove existing password or directory, optionally forcefully.
+ $program git git-command-args...
+ If the password store is a git repository, execute a git command
+ specified by git-command-args.
+ $program help
+ Show this text.
+ $program version
+ Show version information.
+
+ More information may be found in the pass(1) man page.
+ _EOF
}
is_command() {
case "$1" in