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
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

And add these two lines

autoload -Uz compinit
compinit
Enter fullscreen mode Exit fullscreen mode

zsh edit

Everything should work now!

Top comments (0)