Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.