Compare commits

...

3 Commits

Author SHA1 Message Date
sammy bb7f9e45f0
chore: bump version 2021-05-12 06:42:43 -04:00
sammy edd45e4182
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
2021-05-12 06:40:30 -04:00
sammy f9c1eced68
chore: bump version 2021-05-11 19:39:51 -04:00
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ import (
"golang.org/x/term"
)
const version = "0.4.1-dev.7"
const version = "0.4.1-dev.9"
var (
l *lua.LState

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