Questions tagged [eshell]

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

Filter by
Sorted by
Tagged with
40
votes
3answers
8k views

Weird shell output when using IPython 5

I just upgraded to the latest version of IPython and now something is wrong when using it in emacs. When using it in a regular terminal it works fine (colors, tab-completion, etc.), however either ...
27
votes
1answer
722 views

What are all the ways of launching a shell from inside emacs and what are their various properties?

I know of at least four possibilities: eshell term ansi-term shell What's the complete list of tools built-in to emacs to launch a shell, and what benefits and drawbacks do they offer?
5
votes
1answer
1k views

Eshell doesn't reuse TRAMP connection for remote subprocesses

I was trying to operate on remote host using eshell and was disappointed to discover that majority of operations would hang emacs for several seconds. I found it surprising considering that normally ...
8
votes
5answers
5k views

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.
5
votes
2answers
4k views

How to open `shell` or `eshell` in a new window or frame

By M-x eshell or M-x shell Emacs opens a shell or an eshell in the current window. How to open this shell or eshell in a new window?
9
votes
1answer
2k views

How do I make tramp+eshell use my environment customized in the remote ~/.bash_profile

I have set up custom $PATH in my ~/.bash_profile on a remote machine (for programs installed user-locally by nix and cabal). I use eshell and tramp to issue commands on the remote machine (cd /...
2
votes
1answer
122 views

Can't parse the output of manpages in pcmpl-args.el in Emacs 25.1.1

This is a followup to this question, as I originally was uncertain as to how to make this question into a suitable format for this site. So, I'm a user of pcmpl-args.el, which is an Emacs package that ...
8
votes
3answers
3k views

How to programmatically execute a command in eshell?

I want to execute simple commands in eshell without explicitly typing them into the prompt, using something like with-current-buffer How can I do this?
6
votes
2answers
99 views

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 (...
4
votes
1answer
98 views

remote tramp eshell session changes to localhost

I start a tramp dired session to a remote host with C-x d /ssh:user@host:/ and then start eshell with M-x eshell. This places me at the dired path on the remote host, however as soon as I try to cd ...
3
votes
1answer
269 views

emacsclient directly start eshell command command line

Both of the following work to call a graphical/terminal eshell: emacs -f eshell emacs -nw -f eshell Furthermore, this 2-step process also works: `emacsclient -t -a '' /some/real/file/name Metax ...
2
votes
4answers
666 views

Command to Run (Eval) “Hello World” in ELISP on Eshell?

I am new to Emacs and ELISP A file (message "Hello World") saved as hello.el. Now, how to run (evaluate) this file on Eshell? ~/Documents $ ....... hello.el
3
votes
1answer
388 views

How does comint-mode override beginning of line behavior? I want same functionality to eshell

My Emacs version is 24.5.1. Comint-mode protects the prompt by somehow defining the beginning of line to start directly after the prompt regex. This works for normal motion commands like move-...
2
votes
1answer
315 views

What's eshell's syntax for command substitution?

for pid in $(ps -ef | grep "chrome" | awk '{print $2}'); do kill -9 $pid; done Invalid read syntax: ")" What's the right way to run this script in Eshell?
1
vote
1answer
132 views

How to use Emacs to open an eshell from Terminal at a specific path

By default, if I invoke emacs from terminal by typing $ emacs C:\users a directory-like environment opens. Then if I do M-x eshell, an eshell environment opens at this path. My question is how to ...
1
vote
1answer
243 views

Customize eshell redirection to buffer

In eshell I can redirect the output of a command (foo) to a buffer (bar) by inputting: foo > #<buffer bar> I want to customize this syntax the following way: foo > #bar Is it possible ...