From 7197d58080d0236cf9710cb58b5253ebde626858 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Fri, 29 Oct 2021 18:27:42 +0200 Subject: [PATCH] docs(faq): how to stop conda from hijacking the prompt --- docs/docs/faq.mdx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/docs/faq.mdx b/docs/docs/faq.mdx index 9c6767ca..1291600e 100644 --- a/docs/docs/faq.mdx +++ b/docs/docs/faq.mdx @@ -123,12 +123,21 @@ https://ohmyposh.dev/docs/faq#powershell-running-in-constrainedlanguage-mode When running PowerShell in ConstrainedLanguage mode, we can't set the console to UTF-8. This will cause the prompt to be rendered incorrectly. There's a few [options][utf-8] to set the console to UTF-8 from an OS perspective on Windows, other systems shouldn't be impacted. -To remove the message after manual configuration, you can add the following to your `$PROFILE` before importing oh-my-posh: +To remove the message after manual configuration, you can add the following to your `$PROFILE` before importing Oh My Posh: ```powershell $env:POSH_CONSTRAINED_LANGUAGE = 1 ``` +### Conda: environment name displayed in front of the prompt + +Conda will automatically prepend the prompt with the name of the environment you're in. +To solely rely on Oh My Posh to set the prompt, you can configure the follwing setting to hide it: + +```bash +conda config --set changeps1 False +``` + [new-issue]: https://github.com/JanDeDobbeleer/oh-my-posh/issues/new [latest]: https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest [wt-glyph]: https://github.com/microsoft/terminal/issues/3546