MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / InitCustomShellStartupFiles

Function InitCustomShellStartupFiles

pkg/util/shellutil/shellutil.go:273–279  ·  view source on GitHub ↗

in a Once block so it can be called multiple times we run it at startup, but also before launching local shells so we know everything is initialized before starting the shell

()

Source from the content-addressed store, hash-verified

271// in a Once block so it can be called multiple times
272// we run it at startup, but also before launching local shells so we know everything is initialized before starting the shell
273func InitCustomShellStartupFiles() error {
274 var err error
275 initStartupFilesOnce.Do(func() {
276 err = initCustomShellStartupFilesInternal()
277 })
278 return err
279}
280
281func GetLocalBashRcFileOverride() string {
282 return filepath.Join(wavebase.GetWaveDataDir(), BashIntegrationDir, ".bashrc")

Callers 2

StartLocalShellProcFunction · 0.92
mainFunction · 0.92

Tested by

no test coverage detected