When I launch my first bash shell, completion for git works (git rest<TAB>
->git restore
).
After opening a second shell within the first one, tab completion is no longer working for git, but regular file completion is still working.
The output of completion
is the same in both shells (except sort order).
$ echo $0
-bash
$ complete git
$ git rest<TAB> # <--- works
$ cd<TAB> # <--- works
$ bash
$ echo $0
bash
$ complete git
$ git rest<TAB> # <--- does NOT work
$ cd<TAB> # <--- works
How do I figure out where it's going wrong?