Welcome, you are probably interested in using one of the best tools for command-line - fzf. fzf is a command-line tool for fuzzy searching. Well, at f

4 Useful fzf Tricks for Your Terminal

submited by
Style Pass
2021-06-22 09:30:05

Welcome, you are probably interested in using one of the best tools for command-line - fzf. fzf is a command-line tool for fuzzy searching. Well, at first, it might sound that not attractive. But, bear with me, it is very sexy, and it will make your life easier while leaping through your shell.

I prepared four tricks that you can keep up your sleeve whenever you are inside the terminal. But first, let’s go over how we can set up fzf.

I found it the most straightforward. Or, if you are on macOS and want to skip all the fuss, you can use the following command:

After installing, let’s go and try the basic fzf functionality. You can try to run fzf inside your terminal. You should see something like this:

The fuzzy finder launches across your terminal window, and you can search for whatever file you want. The cool thing is that fzf if indexing files as you type. If your directory doesn’t have much complexity regarding files and dirs, you won’t notice the indexing at the bottom.

The first trick today is using fzf to quickly cd into a directory. You can press ALT + c (OPTION + c on macOS), and you will get an interactive prompt. Take a look below:

Leave a Comment