Basic To Boss: Customizing Your PowerShell Prompt
summary
Live coding shows a working 76 line PowerShell profile that replaces the boring default prompt with a left/right aligned status bar displaying history id, nested-pushd depth, drive and folder name, last-exit success color, elapsed runtime and Git branch/ahead/behind. Implementation uses ANSI escape sequences, embeds special glyphs via Powerline fonts, runs in ConEmu, organizes prompt elements as a generic list of scriptblocks and avoids module deps except Git so the demo actually runs.
AI-written summary · about
chapters (11)
- 0:00Start
- 3:41Colors
- 4:14Escape Sequences
- 5:23Power Line Fonts
- 8:41Ansi Escape Sequences
- 9:39Character Accelerator
- 17:42Setting the Foreground Color to the Foreground Prompt Color
- 23:16Left Prompt
- 23:34Setting the Foreground to the for Prompt Color
- 29:57Present Drive Name
- 31:22Powershell Prompt
related talks
45mPutting the "Pro" in PowerShell Profiles!
42mNerdCred++; How to Customize your Bash Prompt
01h 32mOptimizing Visual Studio Code for PowerShell, 2023 Edition
44mTricking Out the Terminal: An Introduction
37mUsing Windows PowerShell to create scripts your users want to use
45mInteractive Enhancements to PowerShell
25mCommandLine Tools for DevOps
43mPowerShell Tooling
