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 == | ||
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 == | |||
To enable fzf in zsh add the following line to .zshrc | To enable fzf in zsh add the following line to .zshrc | ||
Revision as of 20:12, 24 October 2017
fzf is a general-purpose command-line fuzzy finder.
Shell extensions
fzf provides additional key bindings (CTRL-T, CTRL-R, and ALT-C) for shells
First install fzf
in your profile, then use one of the following methods:
bash
To enable fzf in bash add the following line to .bashrc
if command -v fzf-share >/dev/null; then
source "$(fzf-share)/key-bindings.bash"
fi
zsh
To enable fzf in zsh add the following line to .zshrc
if [ -n "${commands[fzf-share]}" ]; then
source "$(fzf-share)/key-bindings.zsh"
fi