Mention zshrc as possible shell config file (#4163)
diff --git a/lib/src/global_packages.dart b/lib/src/global_packages.dart index 4cfbc7e..c79e95f 100644 --- a/lib/src/global_packages.dart +++ b/lib/src/global_packages.dart
@@ -935,11 +935,14 @@ p.relative(binDir, from: Platform.environment['HOME']), ); } - + final shellConfigFiles = Platform.isMacOS + // zsh is default on mac - mention that first. + ? '(.zshrc, .bashrc, .bash_profile, etc.)' + : '(.bashrc, .bash_profile, .zshrc etc.)'; log.warning("${log.yellow('Warning:')} Pub installs executables into " '${log.bold(binDir)}, which is not on your path.\n' "You can fix that by adding this to your shell's config file " - '(.bashrc, .bash_profile, etc.):\n' + '$shellConfigFiles:\n' '\n' " ${log.bold('export PATH="\$PATH":"$binDir"')}\n" '\n');