Skip to main content

Shell environment variables

Every terminal Saggar starts is a normal login shell with these additional values:

VariableValue
SAGGAR1
TERM_PROGRAMsaggar
SAGGAR_SESSIONA unique identifier for the terminal session

Prompts and tools can use SAGGAR=1 or TERM_PROGRAM=saggar to detect the app. Provider hooks and the saggar CLI use SAGGAR_SESSION to address the calling terminal without guessing.