mirror of https://github.com/Hilbis/Hilbish
fix: trim prefix of alias instead of trim
parent
ad14b98b1f
commit
415e66ab9c
2
shell.go
2
shell.go
|
@ -19,7 +19,7 @@ func RunInput(input string) {
|
|||
// If alias was found, use command alias
|
||||
if aliases[cmdArgs[0]] != "" {
|
||||
alias := aliases[cmdArgs[0]]
|
||||
cmdString = alias + strings.Trim(cmdString, cmdArgs[0])
|
||||
cmdString = alias + strings.TrimPrefix(cmdString, cmdArgs[0])
|
||||
cmdArgs, cmdString = splitInput(cmdString)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue