diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-02 12:57:44 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-02 12:57:44 +1300 |
commit | 8aaece1c0d36a43941f0c75a8b20160bc915288d (patch) | |
tree | ed2873dceb2bb957b39df7fb065a70ae345bdd00 /bash/bash_completion.d | |
parent | Rearrange _text_filenames completion a little (diff) | |
download | dotfiles-8aaece1c0d36a43941f0c75a8b20160bc915288d.tar.gz dotfiles-8aaece1c0d36a43941f0c75a8b20160bc915288d.zip |
Apply syntax fixes to last _text_filenames specs
Diffstat (limited to 'bash/bash_completion.d')
-rw-r--r-- | bash/bash_completion.d/tail.bash | 3 | ||||
-rw-r--r-- | bash/bash_completion.d/vi.bash | 3 | ||||
-rw-r--r-- | bash/bash_completion.d/view.bash | 3 | ||||
-rw-r--r-- | bash/bash_completion.d/vim.bash | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/bash/bash_completion.d/tail.bash b/bash/bash_completion.d/tail.bash index e80f40a5..6fe56e29 100644 --- a/bash/bash_completion.d/tail.bash +++ b/bash/bash_completion.d/tail.bash @@ -1,4 +1,5 @@ # Completion for tail(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 tail diff --git a/bash/bash_completion.d/vi.bash b/bash/bash_completion.d/vi.bash index 728be438..5dd35dc1 100644 --- a/bash/bash_completion.d/vi.bash +++ b/bash/bash_completion.d/vi.bash @@ -1,4 +1,5 @@ # Completion for vi(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 vi diff --git a/bash/bash_completion.d/view.bash b/bash/bash_completion.d/view.bash index e228500f..7709b068 100644 --- a/bash/bash_completion.d/view.bash +++ b/bash/bash_completion.d/view.bash @@ -1,4 +1,5 @@ # Completion for view(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 view diff --git a/bash/bash_completion.d/vim.bash b/bash/bash_completion.d/vim.bash index 02d085d1..7b9ba027 100644 --- a/bash/bash_completion.d/vim.bash +++ b/bash/bash_completion.d/vim.bash @@ -1,4 +1,5 @@ # Completion for vim(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 vim |