Fzf: Difference between revisions
Appearance
	
	
 Home-manager integrations  | 
				Barsikus007 (talk | contribs) m zsh article typo fix  | 
				||
| Line 25: | Line 25: | ||
</syntaxhighlight>  | </syntaxhighlight>  | ||
=== Without Home-manager ===  | === Without Home-manager ===  | ||
To enable fzf in   | To enable fzf in zsh add the following line to <code>$HOME/.zshrc</code>  | ||
<code>$HOME/.zshrc</code>  | |||
<syntaxhighlight lang="bash">  | <syntaxhighlight lang="bash">  | ||
eval "$(fzf --zsh)"  | eval "$(fzf --zsh)"  | ||
Latest revision as of 02:38, 13 April 2025
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
With Home-manager
There is option to enable fzf bash integration
programs.fzf.enableBashIntegration = true;
Without Home-manager
To enable fzf in bash add the following line to $HOME/.bashrc
eval "$(fzf --bash)"
Zsh
You can enable fzf in zsh.
With Home-manager
There is option to enable fzf zsh integration
programs.fzf.enableZshIntegration = true;
Without Home-manager
To enable fzf in zsh add the following line to $HOME/.zshrc
eval "$(fzf --zsh)"
Fish
To enable fzf in fish.
With Home-manager
There is option to enable fzf fish integration
programs.fzf.enableFishIntegration = true;
Without Home-Manager
To enable fzf in fish add the following line 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