unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Holger Sparr <sparr+usenet@mfk.tu-dresden.de>
Subject: Re: shell problem in emacs
Date: Tue, 12 Dec 2006 17:48:00 +0100	[thread overview]
Message-ID: <lnodq92h8f.fsf@mfk.tu-dresden.de> (raw)
In-Reply-To: elmik8$fqt$1@news.yaako.com

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

-- 

      parent reply	other threads:[~2006-12-12 16:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-12 15:41 shell problem in emacs Ronald
2006-12-12 16:11 ` Robert D. Crawford
2006-12-12 16:48 ` Holger Sparr [this message]

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=lnodq92h8f.fsf@mfk.tu-dresden.de \
    --to=sparr+usenet@mfk.tu-dresden.de \
    /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).