local-bin.zsh: changed guard variable to be in sync with $HOME/.xsessionrc
This commit is contained in:
		
							parent
							
								
									38223553e7
								
							
						
					
					
						commit
						f220870b9e
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		
							
								
								
									
										8
									
								
								.xsessionrc
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.xsessionrc
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,8 @@
 | 
				
			||||||
 | 
					# Make sure we include this file only once
 | 
				
			||||||
 | 
					if [ -z $ZSH_LOCAL_BIN_ALREADY_SET ];
 | 
				
			||||||
 | 
					then
 | 
				
			||||||
 | 
					        export ZSH_LOCAL_BIN_ALREADY_SET=1
 | 
				
			||||||
 | 
					        # set PATH so it includes user's private bin if it exists
 | 
				
			||||||
 | 
					        [ -d "$HOME/.local/bin" ] && PATH="$HOME/.local/bin:$PATH"
 | 
				
			||||||
 | 
					        [ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue