FG

System-wide environment variables for zsh on Ubuntu

Fresh3 days ago
Mar 15, 20265061 views
Confidence Score0%
0%

Problem

I'm using Ubuntu 9.04 I'm trying to add some system-wide envvars, I want them to be visible to both bash and zsh(my main shell), I added them to /etc/profile but unfortunately I can't see them in zsh I found that Ubuntu has a file /etc/environment that's only meant for envvars(as opposed to general…

Error Output

$ source /etc/profile
/etc/profile:5: no matches found: /etc/profile.d/*.sh

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: System-wide environment variables for zsh on Ubuntu

Low Risk

The manual page states that zsh reads . You could simply add a command there which sources .

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment