From 05a5347ee0bcb634fe706c3f522769a35fe245fb Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 6 Nov 2017 23:34:36 +1300 Subject: Add "do", "then" keywords to Bash completion The Bash keywords "do" and "then" will be followed by another command. Adding them to this list means that pressing tab after "if foo ; then b" will complete for all command names beginning with "b". I was actually a little surprised that this worked, but there isn't really any reason to be; they're shell words just like everything else, not metasyntactic characters or anything like that. --- bash/bashrc.d/completion.bash | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bash') diff --git a/bash/bashrc.d/completion.bash b/bash/bashrc.d/completion.bash index eaf6c5f5..eb01dda2 100644 --- a/bash/bashrc.d/completion.bash +++ b/bash/bashrc.d/completion.bash @@ -37,9 +37,11 @@ complete -A command \ complete \ compopt \ coproc \ + do \ exec \ if \ hash \ + then \ time \ type \ until \ -- cgit v1.2.3