Fzf: Difference between revisions
imported>Jiehong Add example to search all packages |
Barsikus007 (talk | contribs) m zsh article typo fix |
||
(5 intermediate revisions by 4 users not shown) | |||
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 == | ||
=== With Home-manager === | |||
There is option to enable fzf bash integration | |||
<syntaxhighlight lang=" | <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> | ||
To enable fzf in | |||
== Zsh == | |||
You can enable fzf in [[zsh]]. | |||
=== With Home-manager === | |||
There is 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)" | |||
</syntaxhighlight> | </syntaxhighlight> | ||
== fish == | == Fish == | ||
To enable fzf in fish | To enable fzf in [[fish]]. | ||
=== With Home-manager === | |||
There is 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"> | ||
fzf --fish | source | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 47: | Line 53: | ||
nix-env -qa | fzf | nix-env -qa | fzf | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Applications]] | |||
[[Category:Shell]] |