on main help sign in
feat(bash): set `CRUSH=1`, `AGENT=crush` and `AI_AGENT=crush` (#2484)
0f5df9bAndrey Nering
internal/shell/shell.go+8
@@ -82,6 +82,14 @@ func NewShell(opts *Options) *Shell {
82 env = os.Environ()
82 env = os.Environ()
83 }
83 }
84
84
85+ // Allow tools to detect execution by Crush.
86+ env = append(
87+ env,
88+ "CRUSH=1",
89+ "AGENT=crush",
90+ "AI_AGENT=crush",
91+ )
92+
85 logger := opts.Logger
93 logger := opts.Logger
86 if logger == nil {
94 if logger == nil {
87 logger = noopLogger{}
95 logger = noopLogger{}