zshvisual-studio-codezshrc

Vscode terminal not loading .zshrc on startup! How can I fix this?


I have code package installed my on Pop!_OS 21.10, and recently after opening the integrated terminal, I noticed that it does not load my .zshrc.

Here are my settings:

 "terminal.integrated.defaultProfile.linux": "zsh",

Note: Everything works fine when I run source .zshrc after opening the integrated terminal, but it does not load the profile automatically. Anyone knows why?


Solution

  • I have already defined ZDOTDIR variable incorrectly pointing to .cache in my .zshrc, which made code to look over there for my config file.

    The problem is solved now by defining ZDOTDIR as my $HOME directory.

    Update:

    -- $HOME is the default so I just deleted my definition.