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
()
| 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 |
| 273 | func InitCustomShellStartupFiles() error { |
| 274 | var err error |
| 275 | initStartupFilesOnce.Do(func() { |
| 276 | err = initCustomShellStartupFilesInternal() |
| 277 | }) |
| 278 | return err |
| 279 | } |
| 280 | |
| 281 | func GetLocalBashRcFileOverride() string { |
| 282 | return filepath.Join(wavebase.GetWaveDataDir(), BashIntegrationDir, ".bashrc") |
no test coverage detected