Setup Autocomplete in your Mac Terminal - zsh-autocomplete
HTML-код
- Опубликовано: 30 май 2023
- Sometimes you just need a little help remembering what that command was or how it is written.
- Brew Installation tutorial: • How to Install Homebre...
-ZSH-AutoSuggestions: • Have Your Mac Terminal...
Website: easyosx.net
Twitter: easyosx
Facebook: EasyOSX-192509994146472/
Instagram: EasyOSX
Blue Yeti Mic used: amzn.to/38UxiL8
Mic Windscreen and Pop filter: amzn.to/3trczGA
--If you click a link and purchase something through our articles, these may be affiliate links through which we earn a commission. Commission on products do not affect editorial ability or direction, and we try to add affiliate links to items we either do or would recommend and use ourselves. We do not take money or affiliate commissions from companies in exchange for reviewing their products.
#mac #apple #homebrew #brew #terminal #autocomplete #zsh Наука
Thank you! Super helpful and straight to the point! c:
very helpful this video + setup autosuggestions
Much needed. I feel a weight lifted from my shoulders
I never knew I needed a few things you’ve covered on the channel:
Update macOS from terminal
Terminal autosuggestions
Terminal autocomplete
Excellent work sir. Thank you.
Thank you! I've really enjoyed doing more Terminal stuff lately, and I'm glad it's helping you out.
Hey thank you so much, I am switching from Windows to MacOS and this helped a ton!
Happy to help! And welcome to the Mac side!
Thankyou brother Cheeers......!!!"
I love you!
Happy to help!
Done
Great video. You can also run $ source ~/.zshrc instead of restarting terminal
Great tip!
you can have both autocomplete and suggestions installed yeap? or they can't cohabit concomitantly
They can run together, though since publishing this I found I ended up settling on just one. That's just personal choice though
How do you navigate the auto suggestions?
Honestly there's a lot more than I could go into on this video for how to use it. Usually the arrow keys and either Enter or the Right arrow key is enough for daily function. With that said, you might want to read through the documentation on their GitHub where the dev has it all nicely laid out. I've pasted the link below to it.
github.com/marlonrichert/zsh-autocomplete
@@EasyOSX I’m sure the down arrow was working. Now is not.
guys i am on iterm2, can show external command, and folders, nut no internal commands, any idea ?
Have you looked at your .zshrc file for iTerm. Do the same commands work with the built-in Terminal?
@@EasyOSX sorry, I meant external commands.
for internal commands, I can see the list of command options.
but for external commands, it doesn't change the behavior of my shell, I see directory or file suggestions.
yes, i've analyzed my zshrc and i've tested with the shell provided by apple in macos, same result.
if you have any ideas, I'd love to hear them!
Ok, so like you're not seeing suggestions for things like brew commands, but you are for things like softwareupdate, diskutil, etc.?
I'm confused? How is this different than fzf?
Just another alternative utility I guess. Honestly hadn’t heard of fzf until now so maybe I’ll check it out.
for some reason it doesnt work for me ?
says "no matching `directory', `file', `ancestor directory', or `corrections' completions"
did i perhaps install it in the wrong directory? also how can i uninstall it pls haha
Uninstalling would be "brew uninstall zsh-autocomplete". Did you add it to your zshrc file?
@@EasyOSX I did add it to the file. I added the line . I don't understand why it won't work
Hmm, have you tried uninstalling, rebooting, and then running the install process again
Why is this so bad in comparison to Linux? Apt auto installs all auto completes that are already bundled with whatever program you're using, 3rd party or not... I wish there was something as good as that for Mac
Hey Tanchwa, 2 questions if I may ask. First, what part of this do you consider bad exactly? Not asking accusatory, just wanting to make sure I’m understanding what you’re saying. Are you saying it’s bad at autocomplete or something else?
The second question is what autocomplete in APT are you referring to. Admittedly I’m a pretty casual Linux user, but I have used primarily Debian based distros like Debian, Linux Mint, and Ubuntu over many years and have had any of them that come with an autocomplete function in their stock Terminal apps.
@@EasyOSX
Bad being, you hit tab and the suggestions don't come up, or suggest completely incorrect like a folder or something.
most of the applications in linux have a secondary library for auto complete that they put somewhere for their sub commands. Terraform, for example, has always given me issues on my mac but not on my linux box. For a while, git didn't even work. I had to go in and manually install it in that folder. it's somewhere in /etc/ config land I can't remember exactly what it was
@tanchwa3740 Thanks for clarifying, I appreciate you taking the time to do that. Again I haven’t had the same luck with a stock Terminal setup in Linux doing this, but perhaps I’m not doing the same things that you are, or I’m just showing my lack of experience there. Perhaps you could point me to a guide where I could see how to set that up and compare it for myself. I certainly wouldn’t be afraid to put money to say that the Linux Terminal set is probably the most well rounded and powerful of any of the desktop OS’.