mirror of https://github.com/Hilbis/Hilbish
fix: aliases for lua commands
parent
7b0b06d9bf
commit
bdc8c770e6
4
shell.go
4
shell.go
|
@ -31,7 +31,9 @@ func RunInput(input string) {
|
||||||
|
|
||||||
// If alias was found, use command alias
|
// If alias was found, use command alias
|
||||||
if aliases[cmdArgs[0]] != "" {
|
if aliases[cmdArgs[0]] != "" {
|
||||||
cmdString = aliases[cmdArgs[0]] + strings.Trim(cmdString, cmdArgs[0])
|
alias := aliases[cmdArgs[0]]
|
||||||
|
cmdString = alias + strings.Trim(cmdString, cmdArgs[0])
|
||||||
|
cmdArgs[0] = alias
|
||||||
}
|
}
|
||||||
|
|
||||||
// If command is defined in Lua then run it
|
// If command is defined in Lua then run it
|
||||||
|
|
Loading…
Reference in New Issue