Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Feb 2000 23:46:17 -0800
From:      Chris Piazza <cpiazza@jaxon.net>
To:        Annelise Anderson <andrsn@andrsn.stanford.edu>
Cc:        Will Andrews <andrews@technologist.com>, Torsten Blum <torstenb@vmunix.org>, Bill Fumerola <billf@chc-chimes.com>, ports@FreeBSD.ORG, shige@FreeBSD.ORG, asami@FreeBSD.ORG
Subject:   Re: zsh re-org
Message-ID:  <20000212234617.J776@norn.ca.eu.org>
In-Reply-To: <Pine.BSF.4.10.10002121901070.5844-100000@andrsn.stanford.edu>; from andrsn@andrsn.stanford.edu on Sat, Feb 12, 2000 at 10:12:40PM -0800
References:  <20000212121956.B11463@shadow.blackdawn.com> <Pine.BSF.4.10.10002121901070.5844-100000@andrsn.stanford.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 12, 2000 at 10:12:40PM -0800, Annelise Anderson wrote:
> 
> 
> On Sat, 12 Feb 2000, Will Andrews wrote:
> 
> > [ Annelise: what do you mean, "keep the user's history"? Did you look at
> >   the zshall/zshenv manpages? I keep user history with env. vars. ]
> 
> What I've got in the .zshrc is the following:
> 
> PS1="%m %t %6c %# "
> SAVEHIST=1000
> HISTFILE="$HOME/.history"
> export HISTFILE
> export APPEND_HISTORY=1
> alias su='fc -W $HOME/.history && \su -m'
> export  HISTORY=$HOME/.history
> 
> I then have a symbolic link in /root from .history to 
> /usr/local/home/andrsn/.history.  This works so that when I su
> to root, the up arrow recalls commands issued as andrsn.  It
> also changes the last element of the prompt from % to #, and
> the rest of the PS1 line works as well (machine, time, location).

Um.  I just tested what you have above and it's working perfectly
with zsh-3.1.6.  Not *that* much has changed.  BTW, thanks!  I really
like that setup :-). (except the PS1, but that's just my taste).

-Chris
-- 
cpiazza@jaxon.net   cpiazza@FreeBSD.org
        Abbotsford, BC, Canada


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000212234617.J776>