From 128c87c85b017d72967da701464250f2df911239 Mon Sep 17 00:00:00 2001 From: Harry Date: Fri, 29 May 2026 00:27:35 +0100 Subject: [PATCH] feat(install): notify users to migrate custom configs after backup --- tools/install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/install.sh b/tools/install.sh index d907b795c..1e7dfd91e 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -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() {