Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 scripts) but zsh doesn't honor that file.

When I try to source /etc/profile manually I get the following output(I guess it doesn't parse it to the end)

$ source /etc/profile
/etc/profile:5: no matches found: /etc/profile.d/*.sh
share|improve this question
up vote 5 down vote accepted

The manual page zsh(1) states that zsh reads /etc/zsh/zprofile. You could simply add a command there which sources /etc/profile.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .