Preserve the inherited TERM and load Cargo paths before activating mise. Correct ls aliases, query Git branch names directly with a detached HEAD fallback, and use the environment's browser selection.
Avoid numeric comparisons with unset display variables and leave Wayland sessions intact. Keep local PATH entries separate.