commit 50895b559eb252323b989efb47a32cce7af7551a
parent 0a52567c98333fa2e75270d2cea0efc69f62b0a4
Author: Jason A. Donenfeld <Jason@zx2c4.com>
Date: Thu, 24 Jul 2014 19:37:31 +0200
clip: use CLIP_TIME in messages
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/password-store.sh b/src/password-store.sh
@@ -245,7 +245,7 @@ cmd_usage() {
Insert a new password or edit an existing password using ${EDITOR:-vi}.
$PROGRAM generate [--no-symbols,-n] [--clip,-c] [--in-place,-i | --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.
+ Optionally put it on the clipboard and clear board after $CLIP_TIME seconds.
Prompt before overwriting existing password unless forced.
Optionally replace only the first line of an existing file with a new password.
$PROGRAM rm [--recursive,-r] [--force,-f] pass-name
diff --git a/src/platform/darwin.sh b/src/platform/darwin.sh
@@ -12,7 +12,7 @@ clip() {
[[ $now != $(echo -n "$1" | openssl base64) ]] && before="$now"
echo "$before" | openssl base64 -d | pbcopy
) 2>/dev/null & disown
- echo "Copied $2 to clipboard. Will clear in 45 seconds."
+ echo "Copied $2 to clipboard. Will clear in $CLIP_TIME seconds."
}
tmpdir() {