From 5b6fad3a2c7ef44ee61b0db8c79e005f73b79352 Mon Sep 17 00:00:00 2001 From: anlex N Date: Fri, 31 May 2024 10:50:39 +0800 Subject: [PATCH] Documentation: add "environment switch" shell --- web/docs/environments.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/web/docs/environments.md b/web/docs/environments.md index b1c680a9..fe323714 100644 --- a/web/docs/environments.md +++ b/web/docs/environments.md @@ -35,6 +35,21 @@ The active environment is selected via the `MSYSTEM` environment variable. Setting `MSYSTEM` to `UCRT64` and starting a login shell will put you in that environment. +For example, `CLANG64` to `UCRT64`: + +```shell +me@DESKTOP CLANG64 ~ +$ echo $PATH +/clang64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/ + +me@DESKTOP CLANG64 ~ +$ source shell ucrt64 + +me@DESKTOP UCRT64 ~ +$ echo $PATH +/ucrt64/bin::/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/ +``` + ## GCC vs LLVM/Clang These are the default compilers/toolchains used for building all packages in the