mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	fix!: change config path when custom config dir is used to be init.lua instead of .hilbishrc.lua
This commit is contained in:
		
							parent
							
								
									4ef6c7d5c0
								
							
						
					
					
						commit
						4364031b16
					
				
							
								
								
									
										2
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.go
									
									
									
									
									
								
							@ -55,7 +55,7 @@ func main() {
 | 
				
			|||||||
		defaultConfPath = filepath.Join(confDir, "hilbish", "init.lua")
 | 
							defaultConfPath = filepath.Join(confDir, "hilbish", "init.lua")
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		// else do ~ substitution
 | 
							// else do ~ substitution
 | 
				
			||||||
		defaultConfPath = filepath.Join(strings.Replace(defaultConfDir, "~", homedir, 1), ".hilbishrc.lua")
 | 
							defaultConfPath = filepath.Join(strings.Replace(defaultConfDir, "~", homedir, 1), "init.lua")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if defaultHistDir == "" {
 | 
						if defaultHistDir == "" {
 | 
				
			||||||
		defaultHistPath = filepath.Join(userDataDir, "hilbish", ".hilbish-history")
 | 
							defaultHistPath = filepath.Join(userDataDir, "hilbish", ".hilbish-history")
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user