Fzf: Difference between revisions

Granddave (talk | contribs)
m Capitalize shells and make config paths look similar
DHCP (talk | contribs)
m style fixes and minor corrections
 
(2 intermediate revisions by 2 users not shown)
Line 8: Line 8:


== Bash ==
== Bash ==
To enable fzf in bash add the following line to <code>$HOME/.bashrc</code>
=== With Home-manager ===
 
There is an option to enable fzf bash integration:
<syntaxhighlight lang="nix">
programs.fzf.enableBashIntegration = true;
</syntaxhighlight>
=== Without Home-manager ===
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 ==
== Zsh ==
To enable fzf in [[zsh]] add the following line to <code>$HOME/.zshrc</code>
You can enable fzf in [[zsh]].
 
=== With Home-manager ===
There is an option to enable fzf zsh integration:
<syntaxhighlight lang="nix">
programs.fzf.enableZshIntegration = true;
</syntaxhighlight>
=== Without Home-manager ===
To enable fzf in zsh add the following line to <code>$HOME/.zshrc</code>:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
eval "$(fzf --zsh)"
eval "$(fzf --zsh)"
Line 20: Line 31:


== Fish ==
== Fish ==
To enable fzf in [[fish]], add the following to <code>$HOME/.config/fish/functions/fish_user_key_bindings.fish</code>
To enable fzf in [[fish]].
=== With Home-manager ===
There is an option to enable fzf fish integration:
<syntaxhighlight lang="nix">
programs.fzf.enableFishIntegration = true;
</syntaxhighlight>
=== Without Home-Manager ===
To enable fzf in fish add the following line to <code>$HOME/.config/fish/functions/fish_user_key_bindings.fish</code>:


<syntaxhighlight lang="fish">
<syntaxhighlight lang="fish">
Line 32: Line 50:
You can interactively search the list of available packages with:
You can interactively search the list of available packages with:


<syntaxhighlight lang="bash">
<syntaxhighlight lang=console>
nix-env -qa | fzf
$ nix-env -qa | fzf
</syntaxhighlight>
</syntaxhighlight>


[[Category:Applications]]
[[Category:Applications]]
[[Category:Shell]]
[[Category:Shell]]