diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-07-24 19:37:31 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-07-24 19:37:31 +0200 |
commit | 50895b559eb252323b989efb47a32cce7af7551a (patch) | |
tree | b46290b56adb09e5fc5996e87edd55c87f9accc0 | |
parent | 0a52567c98333fa2e75270d2cea0efc69f62b0a4 (diff) |
clip: use CLIP_TIME in messages
-rwxr-xr-x | src/password-store.sh | 2 | ||||
-rw-r--r-- | src/platform/darwin.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/password-store.sh b/src/password-store.sh index 0481c8a..2287a46 100755 --- 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 index d0aba47..e4519ed 100644 --- 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() { |