From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11726 invoked from network); 17 Jul 2000 15:09:43 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 17 Jul 2000 15:09:43 -0000 Received: (qmail 6344 invoked by alias); 17 Jul 2000 15:09:35 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12279 Received: (qmail 6337 invoked from network); 17 Jul 2000 15:09:35 -0000 Date: Mon, 17 Jul 2000 16:09:33 +0100 From: Adam Spiers To: zsh workers mailing list Subject: Re: adding a toplevel zsh.spec.in file Message-ID: <20000717160933.B6739@thelonious.new.ox.ac.uk> Reply-To: Adam Spiers Mail-Followup-To: zsh workers mailing list References: <1000707181834.ZM1473@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <1000707181834.ZM1473@candle.brasslantern.com>; from schaefer@candle.brasslantern.com on Fri, Jul 07, 2000 at 06:18:33PM +0000 X-Home-Page: http://www.new.ox.ac.uk/~adam/ X-OS: RedHat Linux Bart Schaefer (schaefer@candle.brasslantern.com) wrote: > On Jul 7, 6:44pm, Zefram wrote: > } Subject: Re: adding a toplevel zsh.spec.in file > } > } Is there anything that ought to go in /etc/z* on more machines than, > } say, those in a single company? > > I've always asserted that there is not, with the possible exception of > default path settings in /etc/zshenv. In /etc/zshenv: What about setting of umask? In the last discussion about this kind of stuff you suggested that umask setting was better done in zshrc. But shouldn't it be set correctly for non-interactive processes too? These don't do much harm either (quoted mostly straight from Bart anyway ;-) export USER=`id -un` export LOGNAME=$USER export HOSTNAME=$HOST # this only on appropriate boxes of course export MAIL=/var/spool/mail/$USER HISTSIZE=1000 HISTFILE=~/.zshhistory SAVEHIST=1000 export INPUTRC=/etc/inputrc Is there any good reason why /sbin and /usr/sbin should not be on every user's path by default? They're not under RedHat, which is infuriating when it comes to using traceroute, lsof etc. Now here's a candidate for StartupFiles/RedHat/zshrc. Anything badly wrong? --------- 8< --------- 8< --------- 8< --------- 8< --------- 8< --------- # # /etc/zshrc is sourced in interactive shells. It # should contain commands to set up aliases, functions, # options, key bindings, etc. # # Set up aliases alias mv='nocorrect mv' # no spelling correction on mv alias cp='nocorrect cp' # no spelling correction on cp alias mkdir='nocorrect mkdir' # no spelling correction on mkdir # Where to look for autoloaded function definitions fpath=( ~/{lib/zsh,.zsh}/{functions,scripts}(N) ~/.z{sh,}func*(N) $fpath /usr/doc/zsh*/Functions(N) ) typeset -U fpath # Autoload all shell functions from all directories # in $fpath that have the executable bit on # (the executable bit is not necessary, but gives # you an easy way to stop the autoloading of a # particular shell function). for dirname in $fpath do fns=( $dirname/*(N.x:t) ) (( $#fns )) && autoload $fns done # Set prompts PS1='%n@%m %B%3~%b %# ' # default prompt #RPS1=' %~' # prompt for right side of screen #bindkey -v # vi key bindings #bindkey -e # emacs key bindings #bindkey ' ' magic-space # also do history expansion on space --------- 8< --------- 8< --------- 8< --------- 8< --------- 8< ---------