zsh: fix angular completion

fatehmohamed14

Fateh Mohamed 馃悽

Posted on August 12, 2024

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!

馃挅 馃挭 馃檯 馃毄
fatehmohamed14
Fateh Mohamed 馃悽

Posted on August 12, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related