On Mon, 2006-06-19 at 23:57 +0300, Nadav Har'El wrote:
> On Mon, Jun 19, 2006, Baruch Even wrote about "Re: Subversion-friendly Shell 
> hacking?":
> > What you can do is create a shell function called mv that will check if
> > the file is in a subversion directory and do svn move on it. The
> > function will override the call to mv and you'll need to call the real
> > mv with /bin/mv.
> 
> Another possible trick is to change "cd" itself to a function (or, in zsh,
> create a new "chpwd"), and after each directory change, re-alias the "cp"
> and "mv" commands.

I like this idea.  The 'cp' and 'mv' commands would retain their
efficiency.
In bash, it should be possible to set PROMPT_COMMAND so that it'll also
invoke a re-aliasing script.
                                                      --- Omer
-- 
You haven't made an impact on the world before you caused a Debian
release to be named after Snufkin.
My own blog is at http://tddpirate.livejournal.com/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to