mirror of https://github.com/Hilbis/Hilbish
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 nowpull/59/head
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…
Reference in New Issue