zsh-workers
 help / color / mirror / code / Atom feed
* force overwrite in completions
@ 2009-02-18  8:14 Arkadiusz Miskiewicz
  2009-02-18  9:38 ` Peter Stephenson
  2009-02-18 10:11 ` Phil Pennock
  0 siblings, 2 replies; 5+ messages in thread
From: Arkadiusz Miskiewicz @ 2009-02-18  8:14 UTC (permalink / raw)
  To: zsh-workers


Hi,

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.

--- zsh-4.3.9/./Completion/compdump~    2008-07-29 10:53:08.000000000 +0200
+++ zsh-4.3.9/./Completion/compdump     2009-02-11 20:13:11.358508082 +0100
@@ -132,7 +132,7 @@
 print "typeset -gUa _comp_assocs" >> $_d_file
 print "_comp_assocs=( ${(qq)_comp_assocs} )" >> $_d_file

-mv $_d_file ${_d_file%.$HOST.$$}
+mv -f $_d_file ${_d_file%.$HOST.$$}

 unfunction compdump
 autoload -Uz compdump


-- 
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-02-18 11:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-18  8:14 force overwrite in completions 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

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).