installLocation property

String? get installLocation

The shell startup file to add installCommand to, or null if the command is run once instead.

Implementation

String? get installLocation => switch (this) {
  CompletionShell.bash => '~/.bashrc',
  CompletionShell.zsh => '~/.zshrc, after compinit',
  CompletionShell.powershell => r'$PROFILE',
  CompletionShell.fish || CompletionShell.carapace => null,
};