mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 12:09:08 +00:00 
			
		
		
		
	Only set up environment for the top-level shell, and allow it to be inherited normally. A top level shell is usually a login shell, but can also be a non-interactive, non-login shell in certain cases, such as when executing an SSH remote command. Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
		
			
				
	
	
		
			13 lines
		
	
	
		
			258 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			258 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#
 | 
						|
# Defines environment variables.
 | 
						|
#
 | 
						|
# Authors:
 | 
						|
#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
						|
#
 | 
						|
 | 
						|
# Ensure that a non-login, non-interactive shell has a defined environment.
 | 
						|
if [[ "$SHLVL" -eq 1 && ! -o LOGIN ]]; then
 | 
						|
  source "${ZDOTDIR:-$HOME}/.zprofile"
 | 
						|
fi
 | 
						|
 |