From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: furue@hawaii.edu Newsgroups: gmane.emacs.help Subject: Re: eshell: how to alias cp 'cp -i' ? Date: Fri, 07 Sep 2007 15:08:54 -0700 Organization: http://groups.google.com Message-ID: <1189202934.872027.214280@w3g2000hsg.googlegroups.com> References: <1188933532.622355.111700@d55g2000hsg.googlegroups.com> <87y7fksxoi.fsf@utanet.at> <1189035937.564847.293110@50g2000hsm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" X-Trace: sea.gmane.org 1189204882 5277 80.91.229.12 (7 Sep 2007 22:41:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2007 22:41:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 08 00:41:23 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ITmVm-0004Bx-AU for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Sep 2007 00:41:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITmVk-000560-B8 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Sep 2007 18:41:12 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!w3g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 128.171.156.62 Original-X-Trace: posting.google.com 1189202935 3677 127.0.0.1 (7 Sep 2007 22:08:55 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 7 Sep 2007 22:08:55 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Emacs-w3m/1.4.4 w3m/0.5.1+cvs-1.968,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: w3g2000hsg.googlegroups.com; posting-host=128.171.156.62; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:151797 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47318 Archived-At: 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