feat(install): notify users to migrate custom configs after backup

This commit is contained in:
Harry 2026-05-29 00:27:35 +01:00
parent d170d18746
commit 128c87c85b
No known key found for this signature in database
GPG Key ID: 20598C5E46338696

View File

@ -508,6 +508,16 @@ print_success() {
printf '%s\n' "• Join our Discord community: $(fmt_link "Discord server" https://discord.gg/ohmyzsh)"
printf '%s\n' "• Get stickers, t-shirts, coffee mugs and more: $(fmt_link "CommitGoods Shop" https://commitgoods.com/collections/oh-my-zsh)"
printf '%s\n' $FMT_RESET
if [ "$ZSHRC_BACKED_UP" = yes ]; then
printf '\n'
printf "${FMT_YELLOW}⚠️ Your previous ~/.zshrc has been backed up to %s${FMT_RESET}\n" "$OLD_ZSHRC"
printf "${FMT_YELLOW} If you had custom configurations (PATH exports, aliases, functions, etc.),${FMT_RESET}\n"
printf "${FMT_YELLOW} you may want to migrate them to your new ~/.zshrc.${FMT_RESET}\n"
printf '\n'
printf "${FMT_YELLOW} You can compare the two files with:${FMT_RESET}\n"
printf "${FMT_YELLOW} diff %s %s${FMT_RESET}\n" "$zdot/.zshrc" "$OLD_ZSHRC"
fi
}
main() {