Fzf: Difference between revisions

imported>Fadenb
Code fixup + syntax highlighting (no zsh support in pygments)
imported>HLandau
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:fzf}}
[https://github.com/junegunn/fzf fzf] is a general-purpose command-line fuzzy finder.
[https://github.com/junegunn/fzf fzf] is a general-purpose command-line fuzzy finder.


= Shell extensions =
= Shell extensions =
fzf provides additional key bindings (CTRL-T, CTRL-R, and ALT-C) for shells
fzf provides additional key bindings (CTRL-T, CTRL-R, and ALT-C) for shells


First install <code>fzf</code> in your profile, then use one of the following methods:
First install <code>fzf</code> in your profile, then use one of the following methods:


== Bash ==
== bash ==
 
To enable fzf in bash add the following line to .bashrc
To enable fzf in bash add the following line to .bashrc


Line 14: Line 13:
   source "$(fzf-share)/key-bindings.bash"
   source "$(fzf-share)/key-bindings.bash"
fi</syntaxhighlight>
fi</syntaxhighlight>
== ZSH ==


== zsh ==
To enable fzf in zsh add the following line to .zshrc
To enable fzf in zsh add the following line to .zshrc