getShellProfile function
Get the user's shell profile file.
Implementation
String? getShellProfile(ShellType type) {
final home = Platform.environment['HOME'];
if (home == null) return null;
return switch (type) {
ShellType.bash => '$home/.bashrc',
ShellType.zsh => '$home/.zshrc',
ShellType.fish => '$home/.config/fish/config.fish',
ShellType.sh => '$home/.profile',
ShellType.powershell => null, // Uses $PROFILE
ShellType.cmd => null,
};
}