help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell problem in emacs


From: Holger Sparr
Subject: Re: shell problem in emacs
Date: Tue, 12 Dec 2006 17:48:00 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Ronald <followait@163.com> 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

-- 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]