mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 02:49:08 +00:00 
			
		
		
		
	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>
This commit is contained in:
		
				
					committed by
					
						
						Sorin Ionescu
					
				
			
			
				
	
			
			
			
						parent
						
							fc3f8025ea
						
					
				
				
					commit
					0148ee6a4d
				
			@@ -15,7 +15,7 @@ _gpg_agent_conf="${GNUPGHOME:-$HOME/.gnupg}/gpg-agent.conf"
 | 
				
			|||||||
_gpg_agent_env="${TMPDIR:-/tmp}/gpg-agent.env"
 | 
					_gpg_agent_env="${TMPDIR:-/tmp}/gpg-agent.env"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Start gpg-agent if not started.
 | 
					# Start gpg-agent if not started.
 | 
				
			||||||
if [[ -z "$GPG_AGENT_INFO" ]]; then
 | 
					if [[ -z "$GPG_AGENT_INFO" && ! -S "${GNUPGHOME:-$HOME/.gnupg}/S.gpg-agent" ]]; then
 | 
				
			||||||
  # Export environment variables.
 | 
					  # Export environment variables.
 | 
				
			||||||
  source "$_gpg_agent_env" 2> /dev/null
 | 
					  source "$_gpg_agent_env" 2> /dev/null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user