Skip to main content

Module shellrun

Module shellrun 

Source
Expand description

Run pane commands through the user’s interactive shell.

Multiplexers exec a pane’s command directly, bypassing the shell, so prompt-hook environment loaders (direnv, mise, …) never run for the pane. via_shell defers each command to a launcher script instead: the user’s shell starts interactively with the script as stdin, sources its rc files and fires its prompt hooks, and only then reads the script’s single line, which execs the command with stdin re-pointed at the pane’s tty.

Functions§

quote
POSIX shell quoting with Python shlex.quote’s exact output shape.
via_shell
Defer each command pane to a launcher run by the user’s shell.