| 1 |
===================== |
| 2 |
Shell Integration |
| 3 |
===================== |
| 4 |
|
| 5 |
Add the following line to your shell configuration file. |
| 6 |
|
| 7 |
* bash (config file at ~/.bashrc) |
| 8 |
|
| 9 |
# Set up fzf key bindings and fuzzy completion |
| 10 |
eval "$(fzf --bash)" |
| 11 |
|
| 12 |
* zsh (config file at ~/.zshrc) |
| 13 |
|
| 14 |
# Set up fzf key bindings and fuzzy completion |
| 15 |
source <(fzf --zsh) |
| 16 |
|
| 17 |
* fish (config file at ~/.config/fish/config.fish) |
| 18 |
|
| 19 |
# Set up fzf key bindings |
| 20 |
fzf --fish | source |
| 21 |
|
| 22 |
The `--bash`, `--zsh`, `--fish` options are available after fzf 0.48.0. |
| 23 |
More information can be found in the upstream README file: |
| 24 |
|
| 25 |
/usr/share/doc/fzf/README.md.gz |
| 26 |
|
| 27 |
=========================================== |
| 28 |
Shell Integration (The traditional way) |
| 29 |
=========================================== |
| 30 |
|
| 31 |
* bash (config file at ~/.bashrc) |
| 32 |
|
| 33 |
source /usr/share/doc/fzf/examples/key-bindings.bash |
| 34 |
source /usr/share/doc/fzf/examples/completion.bash |
| 35 |
|
| 36 |
The bash completion can be sourced automatically using the following |
| 37 |
line after installing the "bash-completion" package. |
| 38 |
|
| 39 |
source /etc/bash_completion |
| 40 |
|
| 41 |
* zsh (config file at ~/.zshrc) |
| 42 |
|
| 43 |
source /usr/share/doc/fzf/examples/key-bindings.zsh |
| 44 |
source /usr/share/doc/fzf/examples/completion.zsh |
| 45 |
|
| 46 |
* fish |
| 47 |
|
| 48 |
mkdir -p ~/.config/fish/functions/ |
| 49 |
echo fzf_key_bindings > ~/.config/fish/functions/fish_user_key_bindings.fish |
| 50 |
|
| 51 |
=================== |
| 52 |
Vim Integration |
| 53 |
=================== |
| 54 |
|
| 55 |
The straightforward way to use fzf.vim is appending this line to your vimrc: |
| 56 |
|
| 57 |
source /usr/share/doc/fzf/examples/fzf.vim |
| 58 |
|
| 59 |
More information can be found in the upstream README-VIM file: |
| 60 |
|
| 61 |
/usr/share/doc/fzf/README-VIM.md.gz |