Questions tagged [eshell]

Eshell is a command shell written in Emacs Lisp.

99 questions
6
votes
5 answers

Problem using git and Emacs eshell mode on Windows

when i try to make a git commit in emacs eshell mode: git commit -a -m "message" I receive an error: 'c:\Program' is not recognized as an internal or external command, operable program or batch file. and at the same time this problem is absent…
Andreo
  • 597
  • 5
  • 19
5
votes
1 answer

Equivalent of "exec" in emacs *eshell*?

I want to write an eshell function that sort of wraps an existing command-line script. In order to do this, I want to be able to execute a shell command from an eshell function. My first instinct was to do something like (defn eshell/myfunc () …
Derek Thurn
  • 14,953
  • 9
  • 42
  • 64
5
votes
1 answer

scripting with eshell

Is there a way to write .sh scripts to be used from eshell buffer? with eshell(elisp) specific commands? I want ediff $1 $2 to be executed from my compare.sh from within eshell buffer.
egor7
  • 4,678
  • 7
  • 31
  • 55
5
votes
1 answer

How to send ctrl+D into Emacs' Eshell?

How to send ctrl+D into Emacs' Eshell? It looks like Emacs intercepts all my attempts to send any control key + a letter to shell and tries to interpret it as it's own command. How to send that combination to Emacs' EShell?
user9945408
5
votes
1 answer

Invoking su in emacs' eshell

I can run normal linux commands in eshell as a non-root user. When I try to su to root, all the usual linux commands are gone (ls, cat, etc.) How do I fix this?
avendael
  • 2,459
  • 5
  • 26
  • 30
5
votes
1 answer

Emacs, smooth scrolling, scroll-margin and eshell

I like a scroll margin of around 8 or so. This means the buffer will start scrolling when the cursor gets within 8 lines of the top or bottom. However, this scheme does not work well with eshell and ansi-term buffers, isql buffers, or any REPL…
Jones
  • 831
  • 7
  • 9
5
votes
3 answers

Emacs eshell. How to read content of command-line on pressing RET

My intention is to use bm.el Visible Bookmarks for each prompt as I press RET. I have managed to achieve this to a some degree.. Please comment on my code, below, if it is missing some important issue: eg. I have no idea if I need to handle the…
Peter.O
  • 6,696
  • 4
  • 30
  • 37
4
votes
1 answer

emacs shell: type once, run everywhere

Within emacs, I want to have multiple shells open, type a command once, and have it run in each shell -- similar to the way multixterm ( http://freecode.com/projects/multixterm ) does.
Ishpeck
  • 2,001
  • 1
  • 19
  • 21
4
votes
1 answer

How to get rlwrap to work inside Emacs' shell / eshell?

When I try to get rlwrap to work inside an Emacs (version 24.3.50.1) shell buffer (either M-x shell or M-x eshell), I get this error message: rlwrap: Oops, crashed (caught SIGFPE) - this should not have happened! For example: rlwrap telnet…
Cedric Martin
  • 5,945
  • 4
  • 34
  • 66
3
votes
3 answers

Execution environment of the script (eshell vs bash)

How to determine inside a script - whether it has been executed from a eshell or from a normal shell (bash, etc.)?
egor7
  • 4,678
  • 7
  • 31
  • 55
3
votes
2 answers

command expansion: how to convince eshell I'm not trying to execute an elisp expression?

git grep fizzbuzz $(git rev-list --all) fatal: Invalid object name 'Symbol's function definition is void'. Of course, the same command in M-x shell works fine. How do I convince eshell I'm not trying to execute an elisp expression here so I can…
user15486
3
votes
2 answers

I want to replace `ls` with `ls -l` in eshell

I use eshell-parse-command 'ls -l' and I got this: (progn (eshell-trap-errors (eshell-named-command "ls" (list "-l")))) Then I write a alias in my .emacs file: (defalias 'ls (progn ...)) But I doesn't work. I don't know why.
unionx
  • 437
  • 3
  • 15
3
votes
1 answer

Emacs daemon: swapping keys

I'd like to swap C-x and C-u with Emacs daemon (since I switched to Dvorak layout). The regular keyboard-translate doesn't work with Emacs daemon. In the help-gnu-emacs I found a solution: I should use (define-key key-translation-map ...) instead…
falsum
  • 349
  • 1
  • 7
3
votes
2 answers

Multi-line input in EShell

Is there a way for multi-line input in EShell? When I want to do a quick function definition at the commandline of EShell, it doesn't really work. I tried using explicit linebreaks (\n), as well as single-quotes ('') and double quotes (""), but with…
Thorsten
  • 3,451
  • 3
  • 20
  • 25
3
votes
0 answers

Displaying images in an Emacs process running within iTerm2

I want to display inline images in a Emacs process running in iTerm2. Here is a demonstration of what I'm expecting, using imgcat (a iTerm2 shell integration utility). To begin with, I executed the following code within an *eshell* buffer. The…
nalzok
  • 14,965
  • 21
  • 72
  • 139