mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	fix: resplit input on alias
this makes it so itll properly check if the aliased *command* is defined in lua therefore, cd with an argument can be aliased now
This commit is contained in:
		
							parent
							
								
									f9c1eced68
								
							
						
					
					
						commit
						edd45e4182
					
				
							
								
								
									
										2
									
								
								shell.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								shell.go
									
									
									
									
									
								
							@ -41,7 +41,7 @@ func RunInput(input string) {
 | 
				
			|||||||
	if aliases[cmdArgs[0]] != "" {
 | 
						if aliases[cmdArgs[0]] != "" {
 | 
				
			||||||
		alias := aliases[cmdArgs[0]]
 | 
							alias := aliases[cmdArgs[0]]
 | 
				
			||||||
		cmdString = alias + strings.Trim(cmdString, cmdArgs[0])
 | 
							cmdString = alias + strings.Trim(cmdString, cmdArgs[0])
 | 
				
			||||||
		cmdArgs[0] = alias
 | 
							cmdArgs, cmdString = splitInput(cmdString)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// If command is defined in Lua then run it
 | 
						// If command is defined in Lua then run it
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user