Source system-specific .env, if it exists
This commit is contained in:
		
							parent
							
								
									34a6943d73
								
							
						
					
					
						commit
						e3bc9f91bc
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		
							
								
								
									
										6
									
								
								env
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								env
									
										
									
									
									
								
							| 
						 | 
					@ -57,6 +57,12 @@ case $SYS in
 | 
				
			||||||
        ;;
 | 
					        ;;
 | 
				
			||||||
esac
 | 
					esac
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# System specific settings
 | 
				
			||||||
 | 
					if [[ -e "$HOME/.env.$SYS" ]]; then
 | 
				
			||||||
 | 
					    print_info -l 2 "Sourcing environment setup for $SYS systems"
 | 
				
			||||||
 | 
					    source "$HOME/.env.$SYS"
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Local environment settings
 | 
					# Local environment settings
 | 
				
			||||||
if [ -e $HOME/.env.local ]; then
 | 
					if [ -e $HOME/.env.local ]; then
 | 
				
			||||||
    print_info -l 2 "Sourcing local environment setup"
 | 
					    print_info -l 2 "Sourcing local environment setup"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue