startupFilePath method

String? startupFilePath(
  1. CompletionShell shell
)

The shell startup file that loads the installed script of shell, or null if the shell finds the script by itself.

Implementation

String? startupFilePath(final CompletionShell shell) {
  return switch (shell) {
    CompletionShell.bash => _bashStartupFile,
    CompletionShell.zsh => _path.join(
      environment.valueOf('ZDOTDIR') ?? _home,
      '.zshrc',
    ),
    CompletionShell.powershell => _powerShellProfile,
    CompletionShell.fish || CompletionShell.carapace => null,
  };
}