Fzf: Difference between revisions
imported>Makefu import from nixos-users |
imported>Fadenb Code fixup + syntax highlighting (no zsh support in pygments) |
||
Line 11: | Line 11: | ||
To enable fzf in bash add the following line to .bashrc | To enable fzf in bash add the following line to .bashrc | ||
< | <syntaxhighlight lang="bash">if command -v fzf-share >/dev/null; then | ||
source "$(fzf-share)/key-bindings.bash" | source "$(fzf-share)/key-bindings.bash" | ||
fi</ | fi</syntaxhighlight> | ||
== ZSH == | == ZSH == | ||
To enable fzf in zsh add the following line to .zshrc | To enable fzf in zsh add the following line to .zshrc | ||
< | <syntaxhighlight lang="bash"> | ||
source | if [ -n "${commands[fzf-share]}" ]; then | ||
fi</ | source "$(fzf-share)/key-bindings.zsh" | ||
fi | |||
</syntaxhighlight> |