From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Holger Sparr Newsgroups: gmane.emacs.help Subject: Re: shell problem in emacs Date: Tue, 12 Dec 2006 17:48:00 +0100 Message-ID: References: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165945361 32125 80.91.229.10 (12 Dec 2006 17:42:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2006 17:42:41 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 12 18:42:40 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GuBeJ-0001Vv-6i for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Dec 2006 18:42:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuBeI-0000qf-Nr for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Dec 2006 12:42:38 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-X-Trace: news.dfncis.de w13XClarPJSvPmx+3Nsrtw3TRNmscCH9oO8tUelCWbidFT Mail-Copies-To: never User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:VQNWqrgyvinJAN2Pl9Zx+cEMPhY= Original-Xref: shelby.stanford.edu gnu.emacs.help:143869 Original-To: help-gnu-emacs@gnu.org 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:39472 Archived-At: Ronald schrieb am 12.12.2006: > I'm using a eshell in emacs. > Can I use ``clear"? An already posted solution is: (defun kai-eshell-erase-buffer () "Erase contents of Eshell Buffer." (interactive) (let ((eshell-buffer-maximum-lines 0)) (eshell-truncate-buffer))) And with: (defalias 'eshell/clear 'kai-eshell-erase-buffer) you type "clear RET" in an eshell-buffer and it behaves as expected. > My .bashrc file doesn't work here, how to apply it to eshell? What exactly do you want to have available in eshell? The aliases get stored in ~/.eshell/alias and their syntax is a bit different. When typing the same unknown command into eshell several times (3 or 4), you get asked for an alias definition. Holger --