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/mail.bash | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bash/bash_completion.d/mail.bash') diff --git a/bash/bash_completion.d/mail.bash b/bash/bash_completion.d/mail.bash index 65c4ae80..5d1cdec0 100644 --- a/bash/bash_completion.d/mail.bash +++ b/bash/bash_completion.d/mail.bash @@ -1,6 +1,5 @@ # Completion for mail(1) with abook(1) email addresses -declare -F _abook_addresses >/dev/null || - source "$HOME"/.bash_completion.d/_abook_addresses.bash - -# bashdefault requires Bash >=3.0 +if ! declare -F _text_filenames >/dev/null ; then + source "$HOME"/.bash_completion.d/_text_filenames.bash +fi complete -F _abook_addresses -o bashdefault -o default mail -- cgit v1.2.3