FG
💻 Software

Zsh not hitting ~/.profile

Fresh5 days ago
Mar 15, 2026233820 views
Confidence Score1%
1%

Problem

I've just installed zsh on my Ubuntu system. It seems zsh isn't executing ~/.profile on init. To my best understanding, this should be an automatic behavior. What am I missing?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Zsh not hitting ~/.profile

Low Risk

vs. Zsh runs , not , when it is invoked as a login shell. The reason is that zsh has enough incompatibilities with standard shells to break scripts. Zsh does run if it is called as or . But if your objective is to get a zsh prompt when you log in, that's no help. You can make your login shell and include in your . Then when you open a terminal, the terminal will launch zsh (except for a few terminal emulators don't obey the setting). But you will still have when you log in over ssh. This can be…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment