From d0cc3a0f89fa2474242fbdd7af3d9d3cc1a1c248 Mon Sep 17 00:00:00 2001 From: Griffin Date: Tue, 27 Aug 2024 22:31:11 +0800 Subject: [PATCH] Add restart prompt for Windows users after installation (#71) --- src/cli/install.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cli/install.rs b/src/cli/install.rs index 5097200..507c1fc 100644 --- a/src/cli/install.rs +++ b/src/cli/install.rs @@ -132,6 +132,11 @@ impl InstallSubcommand { pt.formatted_elapsed(), )); + let is_windows = cfg!(windows); + if is_windows { + pt.finish_with_message("Please restart your PC to apply PATH changes"); + } + Ok(()) } }