unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: furue@hawaii.edu
To: help-gnu-emacs@gnu.org
Subject: Re: eshell: how to alias cp 'cp -i' ?
Date: Fri, 07 Sep 2007 15:08:54 -0700	[thread overview]
Message-ID: <1189202934.872027.214280@w3g2000hsg.googlegroups.com> (raw)
In-Reply-To: <mailman.479.1189201469.18990.help-gnu-emacs@gnu.org>


Peter Dyballa wrote:
> Am 06.09.2007 um 01:45 schrieb furue@hawaii.edu:
>
> > My tentative solution is
> >
> >   alias cp /bin/cp -i $*
> >
> > which works.  This is asthetically incorrect because it doesn't
> > use eshell's builtin cp.
>
> Have you read about the variable eshell-cp-interactive-query?

Thanks.  Yes, I read it.  That was what I meant in my last posting
by the Lisp variable that changes the behavior of cp.  According
to the Emacs Wiki, the following setting

  (setq eshell-cp-interactive-query t)

should work.  (I haven't tested it.)  Probably I'll switch to
this solution soon, but I'm now looking for the ways to store
this kind of Lisp expressions.  I can write them in ~/.emacs ,
but I don't want to clutter it too much.  I imagine that
~/.eshell/startup.el, ~/.emacs-eshell.el, or some such file
is read when eshell starts up.  I'm reading the Wiki and other
documentations, trying to find it.

Regards,
Ryo

  parent reply	other threads:[~2007-09-07 22:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-04 19:18 eshell: how to alias cp 'cp -i' ? furue
2007-09-05  0:36 ` David Hansen
     [not found] ` <mailman.329.1188952757.18990.help-gnu-emacs@gnu.org>
2007-09-05 19:46   ` Stefan Reichör
2007-09-05 23:45     ` furue
2007-09-06 16:13       ` Edward O'Connor
     [not found]       ` <mailman.424.1189095248.18990.help-gnu-emacs@gnu.org>
2007-09-07  7:05         ` furue
2007-09-07  7:24         ` furue
2007-09-07 21:44       ` Peter Dyballa
     [not found]       ` <mailman.479.1189201469.18990.help-gnu-emacs@gnu.org>
2007-09-07 22:08         ` furue [this message]
2007-09-07 23:08           ` Peter Dyballa

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=1189202934.872027.214280@w3g2000hsg.googlegroups.com \
    --to=furue@hawaii.edu \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).