From 0bae6c2c187d2f69a597603720ee875a73edae39 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 22 Feb 2010 17:20:12 +0000 Subject: [PATCH] * Disable the "smart" tab completion again, because it causes lots of problems: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - It doesn't support filenames with spaces. - It inserts a space after the filename when tab-completing in an "svn" command. - Many people find it annoying that tab-completion on commands like "tar" only matches filenames with the "right" extension. - LluĂ­s reported bash apparently crashing on some tab completions. We should probably make this optional, and maybe use a subset of the bash_completion file in the bash distribution that works. svn path=/nixos/trunk/; revision=20179 --- modules/programs/bash/bashrc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/programs/bash/bashrc.sh b/modules/programs/bash/bashrc.sh index 6fd7b10f2551..7bb7cef5bbe7 100644 --- a/modules/programs/bash/bashrc.sh +++ b/modules/programs/bash/bashrc.sh @@ -63,7 +63,8 @@ alias which="type -p" # The "non-interactive" Bash build does not support programmable # completion so check whether it's available. -if shopt -q progcomp 2> /dev/null; then +if false; then +#if shopt -q progcomp 2> /dev/null; then # Completion. if [ -z "$BASH_COMPLETION_DIR" -a -d "@bash@/etc/bash_completion.d" ]; then BASH_COMPLETION_DIR="@bash@/etc/bash_completion.d"