π΄ Today on #SystemCrafters Live, we'll take a look at a few different options for using Emacs as a shell or terminal emulator: Eshell, vterm, and Eat! We'll compare them to find the overall best experience in terms of speed, terminal emulation quality, and efficiency of use.
Join us on YouTube or Twitch:
- https://youtube.com/live/HG7pVCa0DVY
- https://twitch.tv/SystemCrafters
- https://systemcrafters.net/live-streams/july-28-2023/
π in your time zone: https://time.is/compare/1800_in_Athens
#gnu #emacs #eshell #vterm #eat #terminal #shell #freesoftware
#systemcrafters #gnu #emacs #eshell #vterm #eat #terminal #shell #freesoftware
TIL emacs-eat (a terminal emulator in pure Lisp for Emacs) has builtin integration with eshell. By enabling eat-eshell-mode in eshell, interactive commands ("visual commands" in eshell terminology) can be used directly in eshell without customizing eshell-visual-commands.
@trentskunk I was able to move to #eshell with the help of `eat-eshell-mode` from https://codeberg.org/akib/emacs-eat
Then again I don't use a lot of complex things in terminal anymore, so that might be harder for others.
I'm working on re-implementing a certain Zsh prompt in #Eshell and wanted better access to the current-directory portion. I split it with `(split-string default-directory "/" t)` and spent about 20 minutes trying to put it back together.
Then realized `string-join` exists.
Dammit #emacs!
@cstross Ah, write-once read-never shellscripts, fun times.
You're right, it is pretty funny.
It's a set of #awk-style matches, writing them out as strings instead of awk/sed script files is a good idea if you want to break things.
Personally I'm quite fond of #EmacsLisp for script-gluing things where performance of the glue doesn't matter. #Eshell likewise is a decent shell #DSL with access to those same #Elisp-glued utilities.
#awk #emacslisp #eshell #dsl #elisp #racket #rash
ahΓ³s emacsers of the #fediverse !
mmh...locally i can do it,
but when i do firstly #ssh to a remote server 'M-p' and 'M-n' command history navigation stops working in my #emacs #eshell session .
What am i missing ?
Thanks, thanks, thanks beforehand for your #help
#fediverse #ssh #emacs #eshell #help
π²ππππππ ππππππ ππ-ππππππ.ππ ππππππππ πππππ.
...or do I just not understand something?
#+begin_src eshell
date
#+end_src
#+RESULTS:
: Thu Feb 9 12:10:39 2023
#+begin_src eshell
date
date +%s
#+end_src
#+RESULTS:
^^^^^^^^
Nothing!
#+begin_src eshell
emacs-version
#+end_src
#+RESULTS:
: GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0)
: of 2021-03-27, modified by Debian
#+begin_src eshell
emacs-version ; org-version
#+end_src
#+RESULTS:
: 9.3
Strange, isn't it?
Well... Bookworm is near (and maybe I'll manage to transgrade to Devuan then too... but that'll be a different rant...) ,,X_-ing fingers...
Also my use case of #Emacs is specific: While I do some programming, it mainly is my "operating system" that I use all day long, i.e. I read my email in #Gnus, I use some #orgmode, I use #ses as spreadsheet, #eshell and #vterm are my main shells etc.
But anybody with more in-depth knowledge about #DoomEmacs vs #Spacemacs should please chime in and feel free to correct me.
2/2
#emacs #gnus #orgmode #ses #eshell #vterm #doomemacs #spacemacs
This Reddit comment suggests something similar to what I tooted previously to use the prompt regexp for better #eshell navigation. In this case, set outline-regexp to the prompt regexp. When you enable outline-minor-mode you'll be able to collapse / expand commands as you please, or jump back to a certain command with `consult-outline`.
https://www.reddit.com/r/emacs/comments/e2u5n9/comment/f918t22/
A small code snippet to configure this: