![]() ![]() The fuzzy search, preview windows, and customization options are so lovely you’d going to wish to have it in every other situation. If you’re already using Vim (or you’re planning), I must tell you that fzf fits with Vim perfectly. For example, cat and bat will work well for files but not for previewing directories and hostnames to SSH into. You can add more cases with more commands if you’d like because you might want the different commands to show the preview in other cases. To sum up, here are some of the options you can use by default: You will get the interactive search to find the wanted hostname. You can also quickly search through hostnames to SSH. You can now search for the process or multiple processes you want to end. If that doesn’t work, type kill -9 ** and TAB. You can try it out by typing kill -9 and pressing TAB. One of the default features is to allow you to find the process to kill quickly. You can utilize fzf almost anywhere in your terminal. I find it super useful on a day-to-day basis. You can quickly jump to the command you typed some time ago. Then, search for a command you typed previously. To get started, press CTRL + r in your terminal. The second trick and one of my favorites, to be honest, is the ability to search through the command history with fzf. You can start typing for the wanted directory, select the one you need with arrow keys, and press the enter key to get into it. ![]() It starts indexing the contents of all the directories that are inside the one you are in right now. You can press ALT + c ( OPTION + c on macOS), and you will get an interactive prompt. The first trick today is using fzf to quickly cd into a directory. If your directory doesn’t have much complexity regarding files and dirs, you won’t notice the indexing at the bottom. The cool thing is that fzf if indexing files as you type. The fuzzy finder launches across your terminal window, and you can search for whatever file you want. You can try to run fzf inside your terminal. Mic CheckĪfter installing, let’s go and try the basic fzf functionality. If you’re still having trouble, try out the fzf docs about installing. # Add wisely, as too many plugins slow down shell startup.# To install useful key bindings and fuzzy completion: $(brew -prefix )/opt/fzf/install # Example format: plugins=(rails git textmate ruby lighthouse) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Standard plugins can be found in ~/.oh-my-zsh/plugins/* Inside the configuration file, find the plugin section, and inside the round brackets add zsh-autosuggestions If vi does not work try to use nano or vim instead, if you don't have even nano you can just open the file via GUI using any text editor zshrc configuration file inside your terminal To Install this as other plugin you can follow this You can find other external plugin like zsh-autosuggestions, this actually brings you an autocomplete feature during the typing phase it should updated your ~/.zshrc file with a bunch of stuff including some default useful plugin, you can restart your terminal or resource the configuration file just typing.It's a really complete framework for zsh that brings a lot of functionality and the capability to add external plugins. Hi, actually this is what are you looking for oh-my-zsh. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |