zsh-workers
 help / color / mirror / code / Atom feed
From: Phil Pennock <zsh-workers+phil.pennock@spodhuis.org>
To: zsh-workers@sunsite.dk
Subject: Re: force overwrite in completions
Date: Wed, 18 Feb 2009 02:11:48 -0800	[thread overview]
Message-ID: <20090218101148.GA83790@redoubt.spodhuis.org> (raw)
In-Reply-To: <200902180914.53604.arekm@maven.pl>

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


      parent reply	other threads:[~2009-02-18 10:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-18  8:14 Arkadiusz Miskiewicz
2009-02-18  9:38 ` Peter Stephenson
2009-02-18 11:07   ` Arkadiusz Miskiewicz
2009-02-18 11:19     ` Peter Stephenson
2009-02-18 10:11 ` Phil Pennock [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090218101148.GA83790@redoubt.spodhuis.org \
    --to=zsh-workers+phil.pennock@spodhuis.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).