mirror of
https://git.zx2c4.com/password-store
synced 2026-03-01 18:23:21 +01:00
generate: use nice ansi colors instead.
Revert "Mute git-commit messages to make pass insert readable"
This reverts commit f30ce6374d.
I decided I like the git output. Instead highlight generated passwords
using nice terminal output instead.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user