aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-06 23:34:36 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-06 23:34:36 +1300
commit05a5347ee0bcb634fe706c3f522769a35fe245fb (patch)
treec11751edf14fff828c3b467bebb4c9bbf4e700ec /bash/bashrc.d
parentBreak bash/bashrc.d/completion.bash inline lists (diff)
downloaddotfiles-05a5347ee0bcb634fe706c3f522769a35fe245fb.tar.gz
dotfiles-05a5347ee0bcb634fe706c3f522769a35fe245fb.zip
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.
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/completion.bash2
1 files changed, 2 insertions, 0 deletions
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 \