Skip to main content

Module passthrough

Module passthrough 

Source
Expand description

Bash command passthrough execution with environment diffing.

Runs commands in a bash subprocess, captures environment changes, and prints fish set commands to synchronize the fish shell’s state.

Functions§

bash_exec
Execute a command through bash with streaming output, then print environment changes as fish commands to stdout.
bash_exec_env_diff
Execute a command through bash and only print environment diff as fish commands. No command output is shown — both stdout and stderr are suppressed. Used to source bash scripts and capture their environment side effects.
bash_exec_with_state
Execute a command through bash with state file persistence.