From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16881 invoked from network); 22 Jun 1999 07:21:56 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 22 Jun 1999 07:21:55 -0000 Received: (qmail 849 invoked by alias); 22 Jun 1999 07:21:35 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2403 Received: (qmail 840 invoked from network); 22 Jun 1999 07:21:34 -0000 Date: Tue, 22 Jun 1999 09:21:32 +0200 From: Roland Jesse To: zsh-users@sunsite.auc.dk Subject: Best place to put `mesg n` into? Message-ID: <19990622092132.A18495@loriot.cs.uni-magdeburg.de> Mail-Followup-To: zsh-users@sunsite.auc.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i Hi, I have `mesg n` in my ~/.zshrc file to avoid getting all these `talk` messages. This works fine for the interactive shell. It does not for xterms opened in a way like `xterm -e wnewmail &`. This makes sense as the manpage states Then, if the shell is interactive, commands are read from /etc/zshrc and then $ZDOTDIR/.zshrc. and this xterm is not interactive. But as `mesg` has nothing to do with the shell's environment, I avoided to put it into ~/.zshenv. Am I wrong here and should I put it into .zshenv to affect _all_ possibly opended terminals? Ideas are welcome. Roland