Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save guimondmm/1a2e47d73a191429c7f8b0c12729dc59 to your computer and use it in GitHub Desktop.
Save guimondmm/1a2e47d73a191429c7f8b0c12729dc59 to your computer and use it in GitHub Desktop.
Add an "Anaconda PowerShell Prompt" profile to Windows Terminal. Just paste it in your settings.json file.
{
"colorScheme": "Campbell",
"commandline": "pwsh.exe -ExecutionPolicy ByPass -NoExit -Command \"& '%USERPROFILE%\\anaconda3\\shell\\condabin\\conda-hook.ps1' ; conda activate '%USERPROFILE%\\anaconda3' \"",
"guid": "{e7d34d61-5a57-4f38-8eab-91cb777b0c26}",
"hidden": false,
"icon": "%USERPROFILE%\\anaconda3\\Menu\\anaconda-navigator.ico",
"name": "Anaconda PowerShell Prompt",
"startingDirectory": "%USERPROFILE%"
}
@atulkumar2
Copy link

atulkumar2 commented Nov 12, 2024

Folks should change the GUID.
Below is the section if using miniconda

{ "commandline": "%PROGRAMFILES%\\PowerShell\\7\\pwsh.exe -ExecutionPolicy ByPass -NoExit -Command \"& '%USERPROFILE%\\miniconda3\\shell\\condabin\\conda-hook.ps1' ; conda activate '%USERPROFILE%\\miniconda3' \"", "guid": "{ba3f6141-a2f2-5472-b294-a7d7fb0e264f}", "icon": "%USERPROFILE%\\miniconda3\\Menu\\anaconda_powershell_prompt.ico", "name": "miniconda3 powershell 7", "startingDirectory": "%USERPROFILE%" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment