Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: force overwrite in completions
- X-seq: zsh-workers 26575
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: force overwrite in completions
- Date: Wed, 18 Feb 2009 02:11:48 -0800
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=d200902; d=spodhuis.org; h=Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; b=muSfVc5RZod0YI5Lq+XYxuuvb+PdmHHvvkkjFKz+kxsrIhJ61YQ7h5SGu4zEsD1k9awbeROTfZOM2CFNYamqf+ZN9Dr1fQM6ygFxninjml5MbwjKtMQ6kMuqFie9YsZlLWQd56k46SSCWHs+CtxD7UOMZGMqXUTyExRoOIoDlaE=;
- In-reply-to: <200902180914.53604.arekm@xxxxxxxx>
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200902180914.53604.arekm@xxxxxxxx>
On 2009-02-18 at 09:14 +0100, Arkadiusz Miskiewicz wrote:
> I'm using zsh on a system which shares $HOME between two separate servers and
> when using both at the same time, switching to root at these (and so on) I
> sometimes get a question from mv asking me if I want to overwrite a file over
> and over.
>
> This patch just forces such overwrite.
If the hosts have different sets of binaries installed so that
completion differs between the two, you're losing your caching as each
host keeps blowing away the other's cache.
I use this, both for NFS environment and non-NFS where I tend to play
with different versions of zsh:
if is-at-least 4.2.0; then autoload -Uz compinit ; else autoload -U compinit ; fi
[[ -d "${ZDOTDIR:-$HOME}/.zcompdumps" ]] || mkdir -m 0700 -p "${ZDOTDIR:-$HOME}/.zcompdumps"
compinit -u -d "${ZDOTDIR:-$HOME}/.zcompdumps/${HOST%%.*}-$ZSH_VERSION"
I've autoloaded is-at-least before this.
Regards,
-Phil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author