aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/password-store.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-05-08 03:22:20 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-05-08 03:33:10 +0200
commit63ef32ad87f5e95260a9b632b4b2c9141599f255 (patch)
treed62c539e27a6e36108393b23af8717a284b0d707 /src/password-store.sh
parentzsh: posix compatible sed fix for zsh-completion (diff)
downloadpassword-store-63ef32ad87f5e95260a9b632b4b2c9141599f255.tar.xz
password-store-63ef32ad87f5e95260a9b632b4b2c9141599f255.zip
generate: use nice ansi colors instead.
Revert "Mute git-commit messages to make pass insert readable" This reverts commit f30ce6374d554e704162d5fa8e49acd9c6fd0ecc. I decided I like the git output. Instead highlight generated passwords using nice terminal output instead.
Diffstat (limited to 'src/password-store.sh')
-rwxr-xr-xsrc/password-store.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index bafe1ac..baa7da6 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -32,7 +32,7 @@ git_commit() {
local sign=""
[[ -d $GIT_DIR ]] || return
[[ $(git config --bool --get pass.signcommits) == "true" ]] && sign="-S"
- git commit -q $sign -m "$1"
+ git commit $sign -m "$1"
}
yesno() {
[[ -t 0 ]] || return 0
@@ -472,8 +472,7 @@ cmd_generate() {
git_add_file "$passfile" "$verb generated password for ${path}."
if [[ $clip -eq 0 ]]; then
- echo "The generated password to $path is:"
- echo "$pass"
+ 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"
else
clip "$pass" "$path"
fi