Fork me on GitHub

Does Emacs have a REPL like experience for Bash scripts? I am trying to avoid running the script from beginning after every minor change.


There are a few things like that, on the top of my head:


I also recall seeing someone using fzf as a kind of interactive shell script engine, but I could not find that (reddit?) post


Unfortunately, I need to write Bash scripts only (for work). Since a shell is pretty REPL like, is there a workflow where I can "send" a few lines from a file to be evaluated in another window/buffer where shell is running?

Young-il Choo23:05:42

Have you tried sh-script-mode? It has a function sh-execute-region for evaluating part of the script.

👍 4