문제

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).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top