diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-01 21:46:55 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-02 12:42:25 +1300 |
commit | 254faa3fe34486e0ab8def59561c1de211b85f77 (patch) | |
tree | 4c6f974bb89d66a0043e50a9ca3afe9cb96cd61b /bash | |
parent | Remove ftp(1) completion (diff) | |
download | dotfiles-254faa3fe34486e0ab8def59561c1de211b85f77.tar.gz dotfiles-254faa3fe34486e0ab8def59561c1de211b85f77.zip |
Adjust syntax of two more completion loads
These were missed for 65e47bf, somehow.
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bash_completion.d/sed.bash | 3 | ||||
-rw-r--r-- | bash/bash_completion.d/source.bash | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/bash/bash_completion.d/sed.bash b/bash/bash_completion.d/sed.bash index 7957ebe2..3137412e 100644 --- a/bash/bash_completion.d/sed.bash +++ b/bash/bash_completion.d/sed.bash @@ -1,4 +1,5 @@ # Completion for sed(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 sed diff --git a/bash/bash_completion.d/source.bash b/bash/bash_completion.d/source.bash index de608813..8f40e9e2 100644 --- a/bash/bash_completion.d/source.bash +++ b/bash/bash_completion.d/source.bash @@ -1,4 +1,5 @@ # Completion for `source` with files that look like plain text -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 source |