mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Do not load /etc/tmux.conf if given -f.
This commit is contained in:
		
							
								
								
									
										3
									
								
								cfg.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								cfg.c
									
									
									
									
									
								
							@@ -102,7 +102,8 @@ start_cfg(void)
 | 
				
			|||||||
		cmdq_append(c, cfg_item);
 | 
							cmdq_append(c, cfg_item);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	load_cfg(TMUX_CONF, NULL, NULL, 1);
 | 
						if (cfg_file == NULL)
 | 
				
			||||||
 | 
							load_cfg(TMUX_CONF, NULL, NULL, 1);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (cfg_file == NULL && (home = find_home()) != NULL) {
 | 
						if (cfg_file == NULL && (home = find_home()) != NULL) {
 | 
				
			||||||
		xasprintf(&cfg_file, "%s/.tmux.conf", home);
 | 
							xasprintf(&cfg_file, "%s/.tmux.conf", home);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user