# A Prompt in Your Colors

PowerShell's prompt is a function named prompt that runs before every command you type, so you can write your own that shows the folder's name, the time and colors from $PSStyle, and keep it in your profile.

![Cheat sheet for the lesson A Prompt in Your Colors: PowerShell's prompt is a function named prompt that runs before every command you type, so you can write your own that shows the folder's name, the time and colors from $PSStyle, and keep it in your profile.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/68b5432a036b4c36944e96a1efa74021.webp)

- Category: PowerShell
- Level: Journeyman
- Tags: ansi-escape-code, powershell, prompt, psstyle
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-custom-prompt-cheat-sheet
