Questions tagged [eshell]

Eshell is a shell-like command interpreter implemented in Emacs Lisp.

Eshell is a shell-like command interpreter implemented in Emacs Lisp.

It invokes no external processes except for those requested by the user. It is intended to be a functional replacement for command shells such as bash, zsh, rc, or 4dos since Emacs itself is capable of handling the sort of tasks accomplished by those tools.

Everything it does, it uses Emacs's facilities to do. This means that Eshell is as portable as Emacs itself. It also means that cooperation with Lisp code is natural and seamless.

221 questions
20
votes
2 answers

How to let eshell remember sudo password for two minutes?

In a general term runing bash, when I run a sudo ... command, bash will remember my password for a while. This makes package management task easier. For example: sudo apt-get update # password ...... sudo apt-get install turing-brain # execute…
Nick
  • 4,473
  • 4
  • 26
  • 44
12
votes
7 answers

How to clear the eshell

After looking at this answer I find it hard to believe there is no way to clear the eShell. Does anybody know of a short function or method to delete the entire buffer. Pressing C-l just scrolls the text, as soon as enter is pressed all of that text…
Startec
  • 1,344
  • 1
  • 13
  • 31
11
votes
6 answers

How to run a previous command in an Emacs shell?

Of course when I am in Terminal and I press the up arrow key, it goes to the previous command. However, when I hit the M-x keys and type shell an integrated shell comes up in Emacs: However, if I type a command and press up, this happens: How do…
programking
  • 7,194
  • 10
  • 42
  • 63
9
votes
1 answer

Why does eshell prefer lisp functions even when eshell-prefer-lisp-functions is nil?

If I startup emacs 24.5.2 with emacs -Q and do M-x eshell, then run: $ which rm eshell/rm is a compiled Lisp function in `em-unix.el' I get the eshell version. But if I C-h v eshell-prefer-lisp-functions I see the value is nil. Yet the…
Joseph Garvin
  • 2,071
  • 9
  • 21
9
votes
2 answers

Eshell: Go to prompt line on key press

Sometimes, when I scroll up in eshell, point leaves the command prompt line to stay in the visible area. When I then enter a command, I don't enter the command at the prompt, but rater insert the text somewhere into the output of previously called…
Geier
  • 722
  • 5
  • 15
8
votes
5 answers

Configuration of eshell. Running programs from directories in PATH env variable

How can I configure eshell to be able to run programs from directories in PATH env variable? How can I add additional custom directories to the list? I use Emacs 24.3.1.
whysoserious
  • 349
  • 3
  • 9
8
votes
1 answer

Setting E-Shell Alias

In my emacs alias file located at .emacs.d/eshell/alias, I have the following: alias mv mv -v $* Whenever I execute the alias in eshell, for example: mv from_here.txt to_here.text, I get the error: mv: missing destination file or directory How…
Ari
  • 339
  • 2
  • 6
8
votes
3 answers

How to open files in eshell with wildcards

I am very used to typing in a shell something like: emacsclient **/Threshold.java Where Threshold.java is a file deeply nested in a directory and I just want to open it by name. When I try the same thing in eshell, I get (ec is an alias for…
Lee H
  • 2,727
  • 1
  • 17
  • 31
8
votes
1 answer

How to improve the performance of eshell buffer truncation?

I currently truncate buffers at 20,000 lines by adding the following to my configuration: (setq eshell-buffer-maximum-lines 20000) ;; automatically truncate buffer after output (add-to-list 'eshell-output-filter-functions…
Lee H
  • 2,727
  • 1
  • 17
  • 31
7
votes
1 answer

Why does eshell corrupt my files when using redirection?

If I run this in bash (it's a GraphViz command to make a picture of a graph based on the input file testgraph): $ dot -Tpng testgraph.dot > graph.png with this testgraph.dot: digraph G { a -> b } I can execute it as many times as I want, and…
Joseph Garvin
  • 2,071
  • 9
  • 21
7
votes
1 answer

Is there a way to view the man pages in color in emacs?

I am trying to read the man pages in color. So far I have been using eshell and just typing man However this does not use color to highlight the options etc. I have read that M-x woman mode will render the man pages in color. However not…
Startec
  • 1,344
  • 1
  • 13
  • 31
6
votes
1 answer

Is there something like brace expansion in eshell?

Is there something like brace expansion in bash or zsh for eshell? For those unfamiliar with brace expansion: it is a part of shell expansion in some shells, such as bash or zsh that works as follows: if a word contains a list of words in braces,…
Omar
  • 4,812
  • 1
  • 18
  • 33
6
votes
2 answers

How to tell eshell to use the os-specific tools if available

I understand why eshell provides elisp interpretations of the kill and rm commands, however, I would like Emacs to use the operating-specific implementations if they are available in the $PATH (especially in the case of rm, because the elisp…
Lee H
  • 2,727
  • 1
  • 17
  • 31
6
votes
2 answers

How to remove alias from the eshell?

I recently created the alias in eshell: alias hello 'echo "Hello World"' So now whenever I type hello: I am very used to creating temporary alias in the Terminal for more subtle use. And then putting my more permanent alias in the .bashrc file.…
programking
  • 7,194
  • 10
  • 42
  • 63
6
votes
1 answer

What does TERM=dumb in eshell mean?

In eshell, if I echo $TERM, the result is dumb. What does this mean? Is this an emacs specific thing, or a tty thing?
asmeurer
  • 1,572
  • 12
  • 32
1
2 3 4 5