Fork me on GitHub
#emacs
<
2021-05-19
>
hindol10:05:42

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

motform18:05:56

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

motform18:05:17

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

hindol18:05:43

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 script.sh 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