diff options
| author | Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> | 2023-09-26 23:27:33 +0200 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-10-12 20:44:25 +0900 |
| commit | 86fe40708b330b27107aab9719f7f11ecca00593 (patch) | |
| tree | e6e66695154f5ce45a41c4cc57ecfb2220264e2f /src/pattern_test.go | |
| parent | d718747c5b115838af7ceaf0d4a7f1c84ed7d98b (diff) | |
| download | fzf-86fe40708b330b27107aab9719f7f11ecca00593.tar.gz | |
[bash] statically define __fzf_list_hosts() with either method
When bash-completion (and thus `_known_hosts_real()`) is / is not available this
will typically not change during the lifetime of a shell.
The only exception is if the user would unset `_known_hosts_real()`, but well,
that would be his problem.
So we can easily define `__fzf_list_hosts()` either using `_known_hosts_real()`
or using the old code, and avoid checking every time whether
`_known_hosts_real()` is defined.
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
Diffstat (limited to 'src/pattern_test.go')
0 files changed, 0 insertions, 0 deletions
