Skip to content

Commands & functions

What the profile adds to your session: a handful of functions and a set of PSReadLine key bindings. Nothing here needs a module install.

Functions

The prompt and the lazy conda loader are plain functions defined in the profile.

CommandWhat it doesExample
condaLazy placeholder. On first use it loads the real conda hook once, then runs your command.conda activate base
activateLazy placeholder for environment activation (same first-use load).activate myenv
deactivateLazy placeholder that loads conda, then deactivates.deactivate
Initialize-CondaFinds conda.exe across common locations and sources its hook. Runs automatically; call it to force-load.Initialize-Conda
Get-GitBranchReturns the current branch by reading .git/HEAD on disk, never spawns git.exe.Get-GitBranch
promptThe prompt itself: path, active conda env, git branch, and the prompt symbol.(runs automatically)

Note

The first conda, activate, or deactivate call in a session is slightly slower because it loads conda then; every launch after startup stays fast because nothing conda-related runs until you ask for it.

Key bindings

Set up through PSReadLine for interactive tabs. Ctrl+←/→ also needs the Windows Terminal unbinds from step 4.

KeysAction
Ctrl + / Move the cursor one word left / right.
Ctrl + Shift + / Select one word left / right.
/ Prefix history search: type a few letters, then arrow through matches.
Ctrl + rReverse-search through history.
TabMenu completion: cycle through matches inline.

Environment variables

Set at User scope by the installer and re-asserted by the profile, so the update banner is gone even before the profile loads.

VariableValueEffect
POWERSHELL_TELEMETRY_OPTOUT1Disables PowerShell telemetry.
POWERSHELL_UPDATECHECKOffRemoves the startup update-check banner.

To change any of this (colors, the prompt symbol, or the prediction style), see Profile & theming. Want more commands than this, like git aliases, directory jumping, or a startup banner? See Plugins.