Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: can't write zsh_history
- X-seq: zsh-users 10865
- From: Stanislaw Halik <sthalik@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: can't write zsh_history
- Date: Fri, 13 Oct 2006 16:56:14 +0200
- In-reply-to: <Pine.OSX.4.61.0610130720390.16279@xxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <76C42610-83A0-4174-ADBF-5CD4D75891D5@xxxxxxxxx> <200610121802.k9CI2A8i025805@xxxxxxxxxxxxxx> <Pine.OSX.4.61.0610130720390.16279@xxxxxxxxxxxxxxx>
On Fri, Oct 13, 2006, William Scott wrote:
> luser-% sudo zsh
> root-# (various nefarious evildoing)
> root-# exit
> zsh: can't write history file /Users/luser/.zsh_history
> (I call it .zsh_history, BTW).
> Even "sudo zsh -l" doesn't help. $HISTFILE never changes.
> I thought about having it update dynamically like $PWD,
> but it seems like a lot of overhead for an occasional
> irritation. In addition, in my case at least the
> ownership of ~/.zsh_history remains with luser.
If zsh is your root shell, `sudo -i' will do.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author