First of all, time in bash is not a builtin, it's a reserved word. Secondly, this reserved word in bash only has one possible flag - -p. Why do you need autocomplete for that?
– aviroMar 01 '22 at 08:44
it should also complete all possible commands. eg time dock[tab] completes time docker because docker is an available command in my system. I wish I knew how it worked as I want the same behaviour for one fo my scripts.
– BradMar 31 '22 at 03:39
time
in bash is not a builtin, it's a reserved word. Secondly, this reserved word in bash only has one possible flag --p
. Why do you need autocomplete for that? – aviro Mar 01 '22 at 08:44time dock[tab]
completestime docker
because docker is an available command in my system. I wish I knew how it worked as I want the same behaviour for one fo my scripts. – Brad Mar 31 '22 at 03:39