aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/ed.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-01 02:02:14 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-01 02:02:14 +1300
commit65e47bfe12f3fbc25da69e59c7af38e958c67688 (patch)
tree06b670f4bbbf3fcd1ef6e4a6f21299eca2e78412 /bash/bash_completion.d/ed.bash
parentOverhaul ssh_config hosts completion (diff)
downloaddotfiles-65e47bfe12f3fbc25da69e59c7af38e958c67688.tar.gz
dotfiles-65e47bfe12f3fbc25da69e59c7af38e958c67688.zip
Use full `if` condition for _text_filename source
Diffstat (limited to 'bash/bash_completion.d/ed.bash')
-rw-r--r--bash/bash_completion.d/ed.bash3
1 files changed, 2 insertions, 1 deletions
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