edd 2dd974849b Update sysutils/fzf to version 0.20.0 and install shell support files.
With input from sthen@, abieber@, Matthew Martin and Paco Esteban.

OK abieber@.

Thanks all!
2020-01-18 11:51:13 +00:00
..

+-------------------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-------------------------------------------------------------------------------

Shell Integration
=================

shells/zsh
----------

To enable all support, add this to your ~/.zshrc:

```
autoload _fzf_key_bindings _fzf_completion
_fzf_key_bindings
_fzf_completion
```

_fzf_key_bindings causes zsh to use fzf for things like CTRL+r and CTRL+t,
whereas _fzf_completion makes zsh use fzf for **<tab> completion.

shells/bash
-----------

To enable all support, add this to your ~/.bashrc:

```
source ${BASH_SITE}/key_bindings.bash
source ${BASH_SITE}/completion.bash
```

These two files have the same roles as their zsh counterparts.

shells/fish
-----------

Although the function used to set up fzf is auto-loaded, it can't be used in
the shell config, so we have to source it anyway. Put the following in
~/.config/fish/config.fish:

```
source ${FISH_SITE}/functions/fzf-key-bindings.fish
fzf_key_bindings
```

There is no **<tab> completion support for fish.