![]() ![]() Zsh: correct 'vargant' to 'vagrant' [nyae" frameborder="0" » vargant upĪt first, I wanted to try OMZ because I wanted to checkout all of the themes. (n)o will run the uncorrected command, (y) runs the autocorrected command, (a) exits to a blank prompt and (e) exits to a prompt with the command you wrote written » vargant up It gives you four options: (n)o, (y)es, (a)bort, and (e)dit. Looks like you are trying to type 'vagrant'. For instance, if I type 'vargant up ', Zsh stops me and says are you sure this command is right. If you type a command, Zsh will help you out. If I type 'ssh ' it will go back into my history to the last ssh command I ran. The autocomplete works with your history to combine into an awesome feature. I also stumbled upon this feature recently. Mike Grouchy's Zsh blog shows how when you type 'kill ', you get a list of the available processes you can kill. ![]() The autocomplete is very much command aware as well. Type 'v ' and I can see all the commands that start with v. Pretty cool huh? the autocomplete can also help you see what commands are in your path. At which point I can just cycle through the files with my arrow keys and select the one I want. If I press a second time though, it highlights the first one in the list. ![]() When I type 'vi ', zsh will present me with a list of the files in my current directory. Zsh is built with an autocomplete feature that is awesome. I am just learning Zsh, but so far there are immediately two things it does much better than bash. The best feature of Oh My Zsh is Zsh itself. I was impressed with how simple it was to install and setup (Note: make sure you backup all your dot files from your home directory first, just in case): It wasn't until I heard the Changelog podcast episode on Oh My Zsh that I decided to give it a try. I have heard about zsh for a while and I knew people were switching over in droves. The first Shell-fu blog is on Oh My Zsh (OMZ). Rather than one giant blog, I will release them in a series of blogs called Shell-fu. I wanted to start sharing of these tools, setups and experiences since I am excited about them. I also have been picking up some tips from various other sources, most notably the Changelog podcast. (no more cmd for me!)Īs part of this experience, I have also picked up a bunch of tips and tools from a bunch of my co-workers here at Blackboard. I have found that this has enabled me to focus on learning more about the shell. Having spent a fair amount of my career on Windows machines at work (even though I have been using Mac's at home for 6+ years), it's only in the past year that I have made the full switch to 100% Mac for work and home. I have been recently diving head first into the wonderful world of the shell. ![]()
0 Comments
Leave a Reply. |