Commit Graph

16 Commits

Author SHA1 Message Date
Texas Toland ff91c8d410
Make .zcomp* location configurable (#1842) 2020-06-04 13:53:44 -07:00
romkatv 94f9e44f3f use $TTY instead of $(tty); it's faster and more reliable
`tty` command infers the current TTY from file descriptor 0.
`$TTY` gives current TTY directly. The latter works even when
file descriptor 0 is redirected. It's also over 1000 times faster.
2020-03-02 10:50:11 -08:00
Kaleb Elwert f02dc1af57 gpg: potential fix for #1252 2017-11-10 12:23:37 -08:00
Kaleb Elwert 3f556400e7 Avoid setting TMPDIR and make sure all modules handle that properly
Fixes #1206
2017-07-28 10:24:51 -07:00
Benjamin Chrétien db48a22c74 gpg: fix enable-ssh-support detection
That line may be commented in the config file.
2017-07-07 13:54:19 -07:00
Andrew Schwartzmeyer 2ad1b2f5b1 Load add-zsh-hook in GPG module
Fixes this error:

    ~/.zprezto/modules/gpg/init.zsh:43: command not found: add-zsh-hook
2015-11-12 11:49:41 -05:00
Sorin Ionescu 88aee30ae8 [Fix #762] Use $LOGNAME instead of $USER
$USER is deprecated.
2015-02-13 00:00:27 -05:00
Mathias Fussenegger 0148ee6a4d Check for S.gpg-agent to see if gpg-agent is running
From GnuPG changelog:

>  Removed the GPG_AGENT_INFO related code.  GnuPG does now
>  always use a fixed socket name in its home directory.

Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2014-12-08 17:54:41 -05:00
Grégoire Détrez fc3f8025ea Add a preexec hook to set the GPG-Agent TTY
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2014-12-08 16:38:20 -05:00
nfnty 13d1ed160e Use $GNUPGHOME if it exists 2014-11-22 14:51:06 -05:00
Sorin Ionescu a84ac5b002 Only one newline at end of file 2014-10-09 23:38:15 -04:00
Sorin Ionescu 657e8a16f4 [Fix #689] Use GPG_AGENT_INFO instead of GPG_AGENT_PID
GPG_AGENT_PID may not be defined. Also, source gpg-agent.env before
checking the PID.
2014-10-06 16:42:22 -04:00
Sorin Ionescu ea25ccf62c Set default GPG_AGENT_PID for grep
If `GPG_AGENT_PID` is unset, grep will succeed if another gpg-agent is
running as it will match the string `gpg-agent` where the PID was an
empty string. Set a default value for grep to a value that will never
match if unset, i.e. -1.
2014-10-05 21:46:58 -04:00
Sorin Ionescu 57b283facd [Fix #514] Use /tmp when $TMPDIR is undefined 2014-01-03 14:20:32 -05:00
Sorin Ionescu 1622abb830 Make gpg-agent and ssh-agent work with each other 2013-05-18 21:52:19 -04:00
Sorin Ionescu 2e64f7ed64 [Fix #419] Rewrite module gpg-agent; rename it to gpg 2013-05-01 11:28:40 -04:00