diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-12-29 13:02:15 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-12-29 13:02:15 +1300 |
commit | a4b17a9af86ab88cfe48e616284b56c1bdf019bd (patch) | |
tree | 4d732fcde65a9596cfb10b8ca888f7a96031ef68 | |
parent | Merge branch 'release/v0.21.0' into develop (diff) | |
download | dotfiles-a4b17a9af86ab88cfe48e616284b56c1bdf019bd.tar.gz dotfiles-a4b17a9af86ab88cfe48e616284b56c1bdf019bd.zip |
Remove --batch option and wrapper for gpg(1)
This was originally added to cut the decryption boilerplate, which no
longer seems to be an issue; I think that --quiet may be correctly
blocking it now. Even without this, it caused more problems than it
solved when gpg(1) genuinely did need user interaction from me, for
example for --update-trustdb.
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | gnupg/gpg.conf.mi5 | 5 | ||||
-rw-r--r-- | sh/shrc.d/gpg.sh | 10 |
3 files changed, 0 insertions, 16 deletions
@@ -205,7 +205,6 @@ in `sh/shrc.d` to be loaded by any POSIX interactive shell. Those include: * `ed()` tries to get verbose error messages, a prompt, and a Readline environment for `ed(1)`. * `gdb()` silences startup messages from `gdb(1)`. -* `gpg()` quietens `gpg(1)` down for most commands. * `grep()` tries to apply color and other options good for interactive use if available. * `hgrep()` allows searching `$HISTFILE`. diff --git a/gnupg/gpg.conf.mi5 b/gnupg/gpg.conf.mi5 index 1617a979..74363441 100644 --- a/gnupg/gpg.conf.mi5 +++ b/gnupg/gpg.conf.mi5 @@ -1,11 +1,6 @@ # Retrieve certs automatically if possible auto-key-locate cert pka -# Prevent boilerplate about needing key decryption, which is handled by the -# agent; the gpg function in my Bash scripts overrides this for certain -# commands where it interferes -batch - # Use SHA512 as the hash when making key signatures cert-digest-algo SHA512 diff --git a/sh/shrc.d/gpg.sh b/sh/shrc.d/gpg.sh deleted file mode 100644 index 62d123ea..00000000 --- a/sh/shrc.d/gpg.sh +++ /dev/null @@ -1,10 +0,0 @@ -# Wrapper around gpg(1) to stop ``--batch'' breaking things -gpg() { - # shellcheck disable=SC2048 - case $* in - *--ed*|*--gen-k*|*--sign-k*) - set -- --no-batch "$@" - ;; - esac - command gpg "$@" -} |