There's 2 simple ways for integrating fzf into your ZShell configuration. The first is shown on the README of the git repo. Whereby you enter the
the shown functions and variables into your bashrc or in this case zshrc. However, if you have the ability to install fzf via your package manager (Apt, Pacman, Yum) then fzf should have let you with 2 files to source in your
.zshrc file.
The two files you need to source are dependent on your distro but on Arch Linux based distros the files are located at
- /usr/share/fzf/key-bindings.zsh
- /usr/share/fzf/completion.zsh
After a reload of your configuration with threse two sourced files you will get the default fzf functionality. E.g.
1 | # Files under current directory |
By pressing
If you're not sure if you have the above files you can do a quick find on the command line:
sudo find ./ -name key-bindings.zsh
This may sshow you other plugins but if you just look out for fzf in the path those will be your files.