From d657d352f42dc85df14c5a5c28cfcc5c0932956f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 27 Nov 2015 09:31:20 +1300 Subject: Fix COMP_WORDBREAKS --- bash/bashrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bash') diff --git a/bash/bashrc b/bash/bashrc index 55da282e..a8c4b498 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -98,6 +98,12 @@ if ((BASH_VERSINFO[0] == 4)) ; then fi fi +# Set a simpler custom COMPWORDS to exclude colons; a colon, even unescaped, is +# not part of the shell syntax and it could well be part of filenames, so it +# should not be subject to wordsplitting in completion. Otherwise it messes up +# completion for e.g. Perl library man(1) pages (Net::DNS, Perl::Critic etc) +COMP_WORDBREAKS=' ><=;|&("'\'$'\n' + # Load any supplementary scripts if [[ -d $HOME/.bashrc.d ]] ; then for bashrc in "$HOME"/.bashrc.d/*.bash ; do -- cgit v1.2.3