diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-29 13:19:32 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-29 13:19:32 +1200 |
commit | 0da17bdc3938b84e0f5bfc90d17dfdd2ac4a10b3 (patch) | |
tree | ebf7167a80cbfe03032233e04bb47ee8fb7aa54c /bash/bashrc.d | |
parent | Use consistent case for readline options (diff) | |
download | dotfiles-0da17bdc3938b84e0f5bfc90d17dfdd2ac4a10b3.tar.gz dotfiles-0da17bdc3938b84e0f5bfc90d17dfdd2ac4a10b3.zip |
Move COMP_WORDBREAKS tweaks to completion subfile
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r-- | bash/bashrc.d/completion.bash | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bash/bashrc.d/completion.bash b/bash/bashrc.d/completion.bash index 1246ba31..d3fb246c 100644 --- a/bash/bashrc.d/completion.bash +++ b/bash/bashrc.d/completion.bash @@ -1,6 +1,11 @@ # Various easy completions for Bash builtins; more specific stuff goes in # ~/.bash_completion.d +# If COMP_WORDBREAKS has a value, strip all colons from it; this allows +# completing filenames correctly, since an unquoted colon is not a syntactic +# character: <http://tiswww.case.edu/php/chet/bash/FAQ> (E13) +[[ -n $COMP_WORDBREAKS ]] && COMP_WORDBREAKS=${COMP_WORDBREAKS//:} + # Bash builtins complete -A builtin builtin |