From 65e47bfe12f3fbc25da69e59c7af38e958c67688 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 1 Dec 2018 02:02:14 +1300 Subject: Use full `if` condition for _text_filename source --- bash/bash_completion.d/ed.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bash/bash_completion.d/ed.bash') diff --git a/bash/bash_completion.d/ed.bash b/bash/bash_completion.d/ed.bash index c7fc6fde..b9651957 100644 --- a/bash/bash_completion.d/ed.bash +++ b/bash/bash_completion.d/ed.bash @@ -1,4 +1,5 @@ # Completion for ed(1) with files that look editable -declare -F _text_filenames >/dev/null || +if ! declare -F _text_filenames >/dev/null ; then source "$HOME"/.bash_completion.d/_text_filenames.bash +fi complete -F _text_filenames -o filenames ed -- cgit v1.2.3