From edd45e4182f80ad7ab4afd227fb69c120dda18f4 Mon Sep 17 00:00:00 2001 From: sammy <38820196+TorchedSammy@users.noreply.github.com> Date: Wed, 12 May 2021 06:40:30 -0400 Subject: [PATCH] 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 --- shell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell.go b/shell.go index 86750be..d8a724e 100644 --- a/shell.go +++ b/shell.go @@ -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