mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-06-13 12:42:21 +00:00
Mention _fzf_setup_completion helper function for bash
This commit is contained in:
parent
77cb906dfe
commit
9d842630c9
|
@ -434,11 +434,12 @@ _fzf_compgen_dir() {
|
||||||
|
|
||||||
On bash, fuzzy completion is enabled only for a predefined set of commands
|
On bash, fuzzy completion is enabled only for a predefined set of commands
|
||||||
(`complete | grep _fzf` to see the list). But you can enable it for other
|
(`complete | grep _fzf` to see the list). But you can enable it for other
|
||||||
commands as well as follows.
|
commands as well by using `_fzf_setup_completion` helper function.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
complete -F _fzf_path_completion -o default -o bashdefault ag
|
# usage: _fzf_setup_completion path|dir COMMANDS...
|
||||||
complete -F _fzf_dir_completion -o default -o bashdefault tree
|
_fzf_setup_completion path ag git kubectl
|
||||||
|
_fzf_setup_completion dir tree
|
||||||
```
|
```
|
||||||
|
|
||||||
Vim plugin
|
Vim plugin
|
||||||
|
|
Loading…
Reference in New Issue
Block a user