2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-02 19:53:23 +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:
sammy 2021-05-12 06:40:30 -04:00
parent f9c1eced68
commit edd45e4182
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5

View File

@ -41,7 +41,7 @@ func RunInput(input string) {
if aliases[cmdArgs[0]] != "" {
alias := aliases[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