mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	fix(ssh-agent): add error message if ~/.ssh is not found (#11929)
				
					
				
			Closes #11829 Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
		
							parent
							
								
									8152dc673b
								
							
						
					
					
						commit
						0da416986a
					
				@ -13,6 +13,11 @@ function _start_agent() {
 | 
			
		||||
    fi
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  if [[ ! -d "$HOME/.ssh" ]]; then
 | 
			
		||||
    echo "[oh-my-zsh] ssh-agent plugin requires ~/.ssh directory"
 | 
			
		||||
    return 1
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  # Set a maximum lifetime for identities added to ssh-agent
 | 
			
		||||
  local lifetime
 | 
			
		||||
  zstyle -s :omz:plugins:ssh-agent lifetime lifetime
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user