That works in similar ways as posh-git ( https://github.com/dahlbyk/posh-git ) - the tooling for Powershell to be able to be able to do things with git.
This has a fair bit of code that goes in and examines the .git directory when present.
Additionally, the shell has been programed to be aware of the git sub commands.
But is it aware of... say... svn sub commands? The same amount of effort would be need to be done to have bash aware of .svn and its sub commands.
This is special tooling written for one suite of commands.
It doesn't work for arbitrary commands or arbitrary data structures. Even well known ones.
tar -zxvf <tar filename> {specific file}
That doesn't do tab expansion for the specific files that are within the tar file. Nor does doing --f show the expansion options for --file --format --fflags
Someone wrote special case tooling for one shell for one command named git.
This has a fair bit of code that goes in and examines the .git directory when present.
Additionally, the shell has been programed to be aware of the git sub commands.
But is it aware of... say... svn sub commands? The same amount of effort would be need to be done to have bash aware of .svn and its sub commands.
This is special tooling written for one suite of commands.
It doesn't work for arbitrary commands or arbitrary data structures. Even well known ones.
That doesn't do tab expansion for the specific files that are within the tar file. Nor does doing --f show the expansion options for --file --format --fflagsSomeone wrote special case tooling for one shell for one command named git.