From 4607f0f3c2ad894006681a88e9a6e4be670de7c8 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Mon, 22 Mar 2021 10:06:30 +0400 Subject: [PATCH] =?UTF-8?q?possibilit=C3=A9=20de=20sp=C3=A9cifier=20compat?= =?UTF-8?q?=20bash=5Fcompletion=20si=20pas=20debian?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/bashrc.d/bash_completion.shared | 9 ++++++--- lib/bashrc.d/nutools.userconf | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/bashrc.d/bash_completion.shared b/lib/bashrc.d/bash_completion.shared index c245252..ac80471 100644 --- a/lib/bashrc.d/bash_completion.shared +++ b/lib/bashrc.d/bash_completion.shared @@ -4,7 +4,10 @@ if [ -n "$UTOOLS_BASH_COMPLETION" ]; then function __bash_completion_enabled() { return 1; } function __bash_completion_module_enabled() { return 1; } - if [ -f /etc/debian_version ]; then + _file= + if [ -n "$UTOOLS_BASH_COMPLETION_COMPAT" ]; then + _file="@@dest@@/lib/ulib/$UTOOLS_BASH_COMPLETION_COMPAT/bash_completion" + elif [ -f /etc/debian_version ]; then case "$(