DEV Community

Fateh Mohamed 🐢
Fateh Mohamed 🐢

Posted on

zsh: fix angular completion

My Machine: MAC PRO M1 and I prefer zsh over bash

If you are using Angular and want to have fun with its powerful cli, You may need the Angular completion to discover all commands and their options with a TAB press in your terminal.

Here is how you can activate it

 ng completion
💬 ชาวเน็ตแห่แชร์: fatehmohamed/zsh fix angular completion pb - สรุปดราม่าล่าสุด 💬 ชาวเน็ตแห่แชร์: fatehmohamed/zsh fix angular completion pb - สรุปดราม่าล่าสุด

So simple! but once you want to try it for the first time, zsh is not loading the auto-completions

Here is the fix

nano ~/.zshrc
💬 ชาวเน็ตแห่แชร์: fatehmohamed/zsh fix angular completion pb - สรุปดราม่าล่าสุด 💬 ชาวเน็ตแห่แชร์: fatehmohamed/zsh fix angular completion pb - สรุปดราม่าล่าสุด

And add these two lines

autoload -Uz compinit
compinit
💬 ชาวเน็ตแห่แชร์: fatehmohamed/zsh fix angular completion pb - สรุปดราม่าล่าสุด 💬 ชาวเน็ตแห่แชร์: fatehmohamed/zsh fix angular completion pb - สรุปดราม่าล่าสุด

zsh edit

Everything should work now!

Top comments (0)