Fzf: Difference between revisions
m Add links to Zsh, Fish and add Shell category |
m Capitalize shells and make config paths look similar |
||
Line 7: | Line 7: | ||
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 <code>$HOME/.bashrc</code> | ||
<syntaxhighlight lang="bash">eval "$(fzf --bash)"</syntaxhighlight> | <syntaxhighlight lang="bash">eval "$(fzf --bash)"</syntaxhighlight> | ||
== | == Zsh == | ||
To enable fzf in [[zsh]] add the following line to .zshrc | To enable fzf in [[zsh]] add the following line to <code>$HOME/.zshrc</code> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 19: | Line 19: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== | == Fish == | ||
To enable fzf in [[fish]], add the following to $HOME/.config/fish/functions/fish_user_key_bindings.fish | To enable fzf in [[fish]], add the following to <code>$HOME/.config/fish/functions/fish_user_key_bindings.fish</code> | ||
<syntaxhighlight lang="fish"> | <syntaxhighlight lang="fish"> |
Revision as of 13:54, 16 December 2024
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 $HOME/.bashrc
eval "$(fzf --bash)"
Zsh
To enable fzf in zsh add the following line to $HOME/.zshrc
eval "$(fzf --zsh)"
Fish
To enable fzf in fish, add the following to $HOME/.config/fish/functions/fish_user_key_bindings.fish
fzf --fish | source
Examples
Search all nix packages
You can interactively search the list of available packages with:
nix-env -qa | fzf