Fix main alias expansion (closes #47)

This commit is contained in:
rwxrob 2022-03-30 09:30:41 -04:00
parent 38d6eb1ca5
commit 00f7aa0520
No known key found for this signature in database
GPG Key ID: 2B9111F33082AE77

2
cmd.go
View File

@ -76,7 +76,7 @@ func (x *Cmd) Run() {
x.cacheAliases()
// resolve bonzai.Aliases (if completion didn't replace them)
if len(os.Args) > 2 {
if len(os.Args) > 1 {
args := []string{os.Args[0]}
alias := Aliases[os.Args[1]]
if alias != nil {