:search: fzf¶
fzf is a general-purpose command-line fuzzy finder. It's an interactive Unix filter for command-line that can be used with any list; files, command history, processes, hostnames, bookmarks, git commits, etc.
Installation¶
fzf can be installed using the system's package manager.
Shell Integration¶
To enable key bindings and fuzzy completion, add the following to your shell configuration file.
Usage¶
After setting up shell integration, you can use the following key bindings:
Ctrl+R: Fuzzy search command history.Ctrl+T: Fuzzy search files in the current directory and paste the path to the command line.Alt+C: Fuzzy search subdirectories andcdinto the selected one.
Examples¶
Kill a process:
SSH to a host:
Search environment variables:
Upgrade¶
References¶
- https://www.howtogeek.com/these-fzf-tricks-will-transform-how-you-use-the-linux-terminal/
- https://github.com/junegunn/fzf