summaryrefslogtreecommitdiff
path: root/src/password-store.sh
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@lfos.de>2018-07-26 19:56:40 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-07-26 19:57:47 +0200
commite70b264c5ba1ccf7341aa90bdbf0573c9b13d17e (patch)
tree6b9a3a51ce48669796fa1082a66a895af0cfc7f1 /src/password-store.sh
parent367efa5846492e1b0898aad8a2c26ce94163ba24 (diff)
downloadpass-e70b264c5ba1ccf7341aa90bdbf0573c9b13d17e.tar.gz
pass-e70b264c5ba1ccf7341aa90bdbf0573c9b13d17e.tar.bz2
pass-e70b264c5ba1ccf7341aa90bdbf0573c9b13d17e.zip
Do not set foreground color for generated password
Since commit 63ef32a (generate: use nice ansi colors instead., 2014-05-08), generated passwords are highlighted to make them distinguishable from the Git output. However, setting the foreground color to white makes the password hardly readable when a "black on white" color scheme is used. Drop the hardcoded foreground color and use the bold attribute only instead. Signed-off-by: Lukas Fleischer <lfleischer@lfos.de>
Diffstat (limited to '')
-rwxr-xr-xsrc/password-store.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index 715dc93..55a1aea 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -538,7 +538,7 @@ cmd_generate() {
elif [[ $qrcode -eq 1 ]]; then
qrcode "$pass" "$path"
else
- printf "\e[1m\e[37mThe generated password for \e[4m%s\e[24m is:\e[0m\n\e[1m\e[93m%s\e[0m\n" "$path" "$pass"
+ printf "\e[1mThe generated password for \e[4m%s\e[24m is:\e[0m\n\e[1m\e[93m%s\e[0m\n" "$path" "$pass"
fi
}