Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [eshell]

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

41 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
283 views

How to make eshell recognize path to files and make it clickable?

In the compilation environment in emacs (M-x compile), whenever there is a path to file (ex.: ../src/code.cpp:21:3: warning: comparison between...) it highlights the path and make it clickable. When ...
rph's user avatar
  • 335
5 votes
0 answers
812 views

FZF broken displaying in emacs terminal

I'm struggling to run fzf in emacs but cannot figure out whats my problem. When I run fzf - and start typing - text gets mess up, similar to this: I tried run fzf in term, eshell, ansi-term, multi-...
sandric's user avatar
  • 1,271
4 votes
1 answer
1k views

Run interactive shell script in new buffer using elisp

I am looking for a way to display and interact with long running shell scripts in a separate buffer. While using eshell works, I'd like to automate most shell tasks using elisp. The best way I came ...
mconrads's user avatar
4 votes
0 answers
51 views

How do I prevent sed from endlessly reading stdin when run in eshell?

If you execute the following in bash: $ echo hello | sed 's/hello/world/g' world sed quits immediately, as desired. If you do the same in eshell, sed will still print 'world' but it will keep ...
Joseph Garvin's user avatar
3 votes
0 answers
227 views

How to wait for command execution to complete in eshell

I guess I don't quite understand how to write commands for eshell. I am using the form: (defun eshell/command ()" " (interactive) (insert "command") (eshell-send-input)) When I do this it prints ...
jtgd's user avatar
  • 964
3 votes
0 answers
165 views

Evaluation of .dir-locals.el in shell?

I observed that directory local variables, defined in .dir-locals.el, are set for files, dired-buffers, new buffers, but not for shell or eshell buffers (well, that is also the case for buffers ...
theldoria's user avatar
  • 1,845
2 votes
0 answers
189 views

Eshell stuck colors

When using eshell, if I run a command that outputs colored text, sometimes eshell will get 'stuck' in that color. For example if I use ack and press Ctrl+C before the output finishes this will happen. ...
Joseph Garvin's user avatar
1 vote
0 answers
27 views

Emacs Eshell alias is broken

Eshell: My long-standing very simple "ll" alias has somehow stopped working: $ eshell/which ll ll is an alias, defined as "ls -l $*" $ # correct $ *grep -w ll ~/.eshell/alias alias ...
Steve Biederman's user avatar
1 vote
0 answers
110 views

How can I temporarily disable all (other) key bindings?

How can I write a command, and bind it to a key, so that when invoked it disables all key bindings other than the current key, until that same key binding is pressed again? The goal is to facilitate ...
Dan's user avatar
  • 11
1 vote
0 answers
79 views

How to fix the directory drive letter in eshell to run a NextJS project?

This bug is hard to describe, so I'll tell you how to recreate it. I'm on Windows 10, emacs 27.2, & node v16.13.0. Here are the steps: Open a default emacs (no init) with emacs -Q from powershell ...
bifurcation_is_nature's user avatar
1 vote
0 answers
59 views

How to rename files to numbers in Eshell?

List of files: $ ls -1 *.jpg IMG_20210909_0003.jpg IMG_20210909_0004.jpg IMG_20210909_0005.jpg IMG_20210909_0006.jpg IMG_20210909_0007.jpg … I want to rename these files to 1.jpg, 2.jpg, …, and I ...
feklee's user avatar
  • 1,079
1 vote
1 answer
178 views

Create orgmode agenda from remote directory recursively over ssh

I've set up a vserver with my directory containing various .txt files used as Org files and other files. Now I am trying to get my local Emacs build an agenda gathering all data from the remote files ...
Cyaton's user avatar
  • 11
1 vote
0 answers
52 views

How to get tilde and plus working with the eshell's directory stack

In zsh, when one creates a directory stack with pushd, one is able to reference directories in the stack using a tilde followed by the numerical index of the respective directory in the stack. One ...
izkon's user avatar
  • 1,878
1 vote
0 answers
90 views

/bin/top not found in eshell over ssh

How does eshell resolve its PATH? If I run my top in eshell on my local machine, it opens a new buffer and shows the output of the command in it. However, if I do the same on an eshell run on a remote ...
yujaiyu's user avatar
  • 896
1 vote
0 answers
598 views

Disable evil-mode in eshell

I have disabled evil-mode in eshell by (evil-set-initial-state 'eshell-mode 'emacs) but when I switch windows(accidentally) using C-w k from eshell, evil-mode gets enabled. How do I prevent this ...
Veera Sivarajan's user avatar
1 vote
0 answers
259 views

Use Eshell with Tramp, from a Windows computer to a Linux server

I use a Windows computer to control servers through Tramp (with plink). Here's my setup: (setq explicit-shell-file-name "/bin/bash") (setq default-directory "/plink:user@server:~") Now when I run M-...
kotchwane's user avatar
  • 515
1 vote
0 answers
33 views

How to use separate versions of a language/runtime with two separate eshells?

I have two eshell buffers: esh1 and esh2. In esh1, I want to use a particular Node version, say 6.0.0. In esh2, I want to use a different Node version, say 8.0.0. Using a node version manager called ...
anon's user avatar
  • 131
1 vote
0 answers
86 views

How to make eshell use zsh's zhistory?

I want to try eshell, but I heavily relay on the zsh's history commands, which is in ~/.zhistory. How can I let eshell read these commands?
Chen Li's user avatar
  • 137
1 vote
0 answers
70 views

How to set eshell's ls command to different program in different OS?

Since result of /usr/bin/ls is more neat compares with eshell/ls when filenames contain non-lattin Unicodes. I add an alias in ~/.emacs.d/eshell/alias, which makes eshell use /usr/bin/ls as default: ...
sparkecho's user avatar
1 vote
0 answers
39 views

Does eshell support directory-stack expansion ala bash?

Does eshell support directory-stack expansion ala bash ? bash> pushd dir bash> ls ~-1 <Outputs contents of dir>
politza's user avatar
  • 3,346
1 vote
0 answers
55 views

how can I view the history on remote hosts with helm-eshell-history?

I'd really like to use eshell on remote hosts, however I have to use !N in order to call history items. I haven't found any other way to select history items and this is really inconvenient compared ...
bertfred's user avatar
  • 1,729
0 votes
0 answers
15 views

How to expand yas-snippets in eshell (under Doom)

(This may have nothing to do with Doom-emacs, but because I use it, I should mention it) The famous "for-loop" expansion (https://xenodium.com/yasnippet-in-emacs-eshell/) does not work for ...
jeffkowalski's user avatar
0 votes
0 answers
155 views

org-latex-preview error on Windows: file was not generated please adjust dvisvgm part of org-latex-preview-process-alist

I have used org-mode before in Linux to generate LaTeX fragments very smoothly. I am using dvisvgm. Now, I have switched to Windows. I keep getting the error "file orgtex00000.dvi was not ...
PPenton's user avatar
0 votes
1 answer
181 views

How to open a eshell buffer in a different window in doom emacs?

I want to open an eshell buffer in right side of the current window in the same frame.
Biswanath's user avatar
  • 101
0 votes
0 answers
155 views

How can I run WSL commands from Emacs running on Windows?

There are tons of articles on how to install GNU Emacs on WSL(2) and how to work within WSL2. However, I have Emacs installed on Windows1 and would like to access the file system and commands within ...
Zeta's user avatar
  • 1,103
0 votes
0 answers
34 views

Random warning popping up occasionally when using eshell

I occasionally get this warning while running eshell: Warning (comp): tramp-loaddefs.el.gz:745:2478: Warning: reference to free variable ‘tramp-remote-path’ and was wondering how to fix it. According ...
user129393192's user avatar
0 votes
0 answers
38 views

Best way to get man to open in emacs by default

I currently have: man () { emacs -nw --eval "(man \"$1\")"; } in my .zshrc. However, this has the problem of not working with something like read(2) or command-line arguments to ...
user129393192's user avatar
0 votes
0 answers
42 views

eshell insert arguments from previous commands

I use M-. a lot to insert arguments of previous commands when using zsh/bash. Is there a built-in equivalent for eshell? I did a GH code search, and saw this was implemented by em-last and em-zle, ...
C4ffeine Add1ct's user avatar
0 votes
0 answers
281 views

How to change the eshell path on Windows

When I open M-x eshell, and type things I recently added to path I get: node: command not found where node is the command that has been recently added. I've added the path to PATH on both the system ...
Will's user avatar
  • 1
0 votes
1 answer
78 views

(set-eshell-alias!) for mv causes error: missing destination file or directory

In doom emacs, I'm setting some aliases in my config as follows: (set-eshell-alias! "ls" "exa --icons $*" "doomsync" "~/.emacs.d/bin/doom sync" ...
Dargscisyhp's user avatar
0 votes
0 answers
119 views

Emacs shell make a new shell in a new numbered *shell<n>* buffer, same window

I updated from emacs 27 to emacs 29, and I find that now when I run M-x shell It overwrites the file/buffer I am currently using with a new shell, rather than starting a new shell in the current ...
Mittenchops's user avatar
0 votes
0 answers
95 views

eshell - completion-at-point sometimes add an extra space after selecting

for example, in eshell, I have cd ~/Download/some$ where $ is where the cursor is. If I type Tab to invoke completion-at-point, after selecting the completion candidate, it would add one white space ...
yi.tang.uni's user avatar
  • 1,017
0 votes
0 answers
279 views

`sudo !!` in eshell?

I was wondering how you could get the equivalent of sudo !! in eshell. I cant tell you the amount of times I have done this forgetting eshell doesn't have this feature built in. I have looked through ...
Nicholas Hubbard's user avatar
0 votes
0 answers
188 views

is there a way to make compile shell process happen in eshell / "real" shell?

i wanted to bind a key to a compile and run command, then i found this post, Compile and run single file c++ programs in Emacs[SOLVED] ( last answer) It works perfectly fine and as intended. The only ...
Falseee's user avatar
0 votes
0 answers
138 views

Cannot run executable in eshell

I have an executable (guix) in directory under home. I am using eshell. I add that directory to PATH. But when I run the command, the executable is not found. I have tried various methods such as ...
Hoopla's user avatar
  • 71
0 votes
0 answers
256 views

Send command to run in eshell, after compiled

So I've been mapping my M-x compile like this, according to c-mode-hook or c++-mode-hook: (add-hook 'c++-mode-hook (lambda () (set (make-local-variable 'compile-command) ...
mle0312's user avatar
  • 295
0 votes
1 answer
161 views

How to show colours and clear when running React development server in eshell?

Here is how the usual Ubuntu terminal looks when you run the React development serving using npm start and make changes to your source: Say the server was already running and you tried to do npm ...
scribe's user avatar
  • 1,035
0 votes
0 answers
205 views

Why eshell lists my host environment variables when I am connected to other machine via ssh?

I am connected to another machine using tramp and my eshell does send all the commands to remote machine but when I do echo $PATH it prints me my local PATH. Why?
yujaiyu's user avatar
  • 896
0 votes
0 answers
959 views

Exec format error when trying to run scripts from eshell

i get the following error no matter which simple bash script i try to run emacs: /home/zeltak/bin/zbak.sh: Exec format error all the scripts work great from bash/zsh is this a known issue? cant you ...
zeltak's user avatar
  • 1,745
0 votes
0 answers
240 views

Incorrect Line Spacing in (term-mode, ansi-term, eshell, shell) Output

The output of certain commands in multiple major modes (term-mode, ansi-term, shell, eshell) is incorrectly spaced (see images). This occurs for numerous commands and does not occur in other emulators ...
user avatar
0 votes
0 answers
147 views

Use 'open' command on OS X from eshell

Inside of eshell I get the error LSOpenURLsWithRole() failed with error - 10810 for the file ... if I try to use the open command on OS X. What's going on here and is there a workaround? Edit: The ...
Praxeolitic's user avatar