Eshell is a command shell written in Emacs Lisp.
Questions tagged [eshell]
99 questions
2
votes
1 answer
Eshell history manipulation (quick string substitution) doesn't work
I'm using eshell in emacs.
In bash, when I execute:
ls test
^ls^ll^
it executes the last command again with the ls changed to ll, like this:
ll test
How can I do it in eshell?
When I did this:
ls test
^ls^ll^
or:
!!:s/ls/ll/
eshell gave…
user1001237
2
votes
1 answer
Send commands to eshell from eslip
I am writing an elisp function that sends a command to an existing eshell buffer, waits for the command to finish, and send another command. For example, I would like to send:
python
2+3
So far I have tried the following, unsuccessfully:
1.Getting…

ealfonso
- 6,622
- 5
- 39
- 67
2
votes
2 answers
How does erlang:now() work?
-module(test_now).
-compile(export_all).
start() ->
{_, A, _} = now(),
loop(0, A).
loop(A) ->
{_, B, _} = now(),
if
B == A + 1 -> loop(0, B);
true -> loop(A)
end.
loop(T, B) ->
{_, C, _} =…

wizawu
- 1,881
- 21
- 33
2
votes
0 answers
In emacs shell and eshell, \r erases the entire current line
In an emacs shell terminal window, running bash, an input of \r moves the insertion point to the start of the line, as expected, but it also erases all data which was on the line. This isn't what I would normally expect from a Terminal.
I…

Peter.O
- 6,696
- 4
- 30
- 37
2
votes
1 answer
Emacs silently appends -i to shell command
And it breaks the shell I'm trying to run because it doesn't know the -i option. I've searched all variables that start with shell- but none of them has value of -i Setting explicit-shell-file-name changes the name, but the option is still…
user797257
1
vote
1 answer
Emacs eshell 'ulimit' command
why i could not find ulimit command in esehll mode
but M-x ansi-term had not this problem.
how could i fix it.
like this:
~ $ ulimit -c
ulimit: command not found
~ $

Droi
- 35
- 3
1
vote
1 answer
Making eshell expand .. like bash
In bash, due to the layout of my keyboard, I often do cd .. to have it expand the trailing slash, however, eshell does not do this out of the box. How would I go about making it do this?

Sarah
- 6,565
- 1
- 33
- 44
1
vote
2 answers
Eshell - where is the default directory and the path defined?
Two little questions with regards to the configuration of Eshell. I looked at the customization options and even the source code, but to no avail. Maybe I should have taken a better look.
When I start Emacs and open Eshell, the directory is…

Thorsten
- 3,451
- 3
- 20
- 25
1
vote
2 answers
In emacs dired mode, is there a setting that dired uses eshell-ls and other eshell commands?
This answer https://emacs.stackexchange.com/questions/28981/finding-files-by-names mentions
"If you are running Dired with a 'ls' implemented in elisp, 'ls-lisp' or 'eshell-ls', then you can recursively list all the files matching a wildcard".
But I…

mzimmermann
- 1,002
- 2
- 9
- 14
1
vote
2 answers
Calling Emacs' Eshell's eshell-previous-matching-input-from-input from elisp
I'd like to make my up-arrow key from within eshell be eshell-previous-matching-input-from-input, as it is, when point is at point-max, but be previous-line otherwise. I've written
(defun my-up-arrow-in-eshell() (interactive)
(if (=…

Steve Biederman
- 11
- 2
1
vote
2 answers
Eshell - is there something like open-eshell-here?
In the Windows Explorer there is a function 'command-prompt-here' that opens a command prompt for the actual directory.
Is there something similar for eshell, that enables me to open an eshell from dired in the actual directory? When I look at a…

Thorsten
- 3,451
- 3
- 20
- 25
1
vote
0 answers
How can I resolve a sed invalid reference error when trying to use bash to overwrite Emacs eshell alias list?
I'm trying to get Emacs eshell to use the same alias' as bash.
I tried following the wisdom in the top comment from Stackoverflow here, which was to add these two lines to the .emacs profile:
(setq shell-file-name "bash")
(setq shell-command-switch…

Ruminare
- 47
- 7
1
vote
1 answer
Some functions of emacs shell disappears when I put this code in my init file
I tried to put this code in my Emacs init file:
(setq eshell-prompt-function (lambda ()
(concat "["
(user-real-login-name)
"@"
(system-name)
" "
(car (last (split-string (eshell/pwd) "/")))
…

class_OpenGL
- 185
- 1
- 10
1
vote
1 answer
How to iterate through command output in eshell
I know I could use xargs, but I'm in eshell! There must be a slicker way of doing it. Let's say I run
find . -name "*.suo"
What's an eshell way of iterating through the results to rm each? I've tried for and mapc but not being very good at this…

George Mauer
- 117,483
- 131
- 382
- 612
1
vote
0 answers
where can I find a elisp function
https://www.emacswiki.org/emacs/EshellAlias
Hi I'm looking for a elisp function 'regexp-count-capture-groups'
at the end of this page.
Is there anyone who knows where this is or can write very similar codes?

windrg00
- 457
- 3
- 9