akreisher/eshell-syntax-highlighting: Syntax highlighting for Eshell
Highlight eshell syntax on command line and in script(?)
Highlight eshell syntax on command line and in script(?)
Eshell commands for init.el
Archives of GNU emacs-devel (includes eshell)
Bug in eshell-do-eval loop that probably sets exported variable to nil.
Report GNU emacs bugs including eshell here
1 In eshell, you can redirect stdout to an emacs buffer in a few different ways. rails g scaffold --help > (switch-to-buffer “*scaffold*“) rails g scaffold --help >>> #
The only known way to run eshell script from shell (outside emacs). This starts emacs UI. Add --batch to run without UI. emacs --debug-init -q --eval “(progn (require 'em-script) (let ((eshell-rc-script \“/tmp/wtf.esh\“)) (eshell)))“
Use shebang + exec emacs --script to run emacs code as a shell script but also as emacs code, for example load-file #! /bin/sh “:“; exec emacs --no-site-file --script “$0“ -- “$@“ # -*-emacs-lisp-*- (print (+ 2 2))
Run elisp code as script - summary
Org babel mode for eshell
Eshell accepts ksh-like syntax. Amog others you can specify a group of files by (file1|file2|...|fileN). But, that is a bit tricky since parentheses also indicate lisp forms to be evaluated (for an example see the answer by lawlist). Use '' to tell it is a predicate, not form: cp /Users/HOME/.0.data/.0.emacs/.0.sources/emacs/(buffer.c|buffer.h|dispextern.h|keyboard.c|nsterm.m|w32term.c|window.h|xdisp.c|xterm.c)'' ~/Desktop/emacs/src/
Another way to run bash script from eshell
Execute any external command such as bash from eshell
eshell is part of emacs on github
Also describes how to use eshell commands for finding etc.