up vote 2 down vote favorite
1
share [g+] share [fb]

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
link|improve this question
feedback

1 Answer

up vote 3 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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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