Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Functions in system init scripts
- X-seq: zsh-users 13345
- From: Daniel Qarras <dqarras@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Functions in system init scripts
- Date: Sun, 19 Oct 2008 11:10:31 -0700 (PDT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=n2kzYmtua0i2Z5lOTCVS0ObZJp3lZqiKqA99iOSVaNWj3JTQTOPUmelBcu/4PgO7wyDYU/TuNOZt20ixQlEgqDh4q+FiG6L1dQvUf7/PKQkFE0H/xbGgHjKeWJJkxMo/V5H+Z1M7U7wrs4VRrt89KIzm+VqbPPdvPyq6UFe9LWI=;
- In-reply-to: <fda2d4340810171410t757c7761xb28c445f33698bd4@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: dqarras@xxxxxxxxx
Hi!
> > When a user is logging via a display manager like GDM,
> the function definitions get "lost" as only
> zshenv/.zshenv/zshrc/.zshrc are getting sourced when an
> xterm / gnome-terminal is launched. zprofile/.zprofile are
> sourced during the login but only environment variable
> setting survive till xterm/gnome-terminal.
>
> One way to fix this is to make your terminal emulator
> execute the shells as login shells (gnome-terminal can do that IIRC).
True, thanks for the tip (although this doesn't sound optimal as xterm would still be unfixed).
> Another way would be to *only* source /etc/profile in your
> zshrc as this file gets executed for any interactive shell, login
> or not.
Yeah, I guess this is more or less the only option; the side-effect is that one needs to move stuff from zprofile/.zprofile to zshrc/.zshrc in order to be able to override system settings (e.g., locale settings). This is perhaps bit contradicting of how many view the division between different zsh init files.
Cheers!
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author