completion: match exe on basename alone
This commit is contained in:
parent
16e7ca3a95
commit
5d0dabe51c
1 changed files with 1 additions and 0 deletions
|
|
@ -571,6 +571,7 @@ func (self *Command) GetCompletions(argv []string, init_completions func(*Comple
|
|||
}
|
||||
if len(argv) > 0 {
|
||||
exe := argv[0]
|
||||
exe = filepath.Base(exe) // zsh completion script passes full path to exe when using aliases
|
||||
cmd := self.FindSubCommand(exe)
|
||||
if cmd != nil {
|
||||
if cmd.ParseArgsForCompletion != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue