How to define your own terminal tab completions
-
03-10-2019 - |
문제
I've noticed that some programs have their own tab-completion.
For example, git:
git checkout
allows for tab completion of branch names.
How is this accomplished?
해결책
Use compgen
and complete
(article about custom bash completing).
제휴하지 않습니다 StackOverflow