02 / PERSONALIZATION
YOUR OWN
DRACULA GLOW.
Give PowerShell a readable date and time, then pair it with Dracula colors. Try the prompt in one session first; keep your system policies unchanged.
CONNECTION ESTABLISHED. GREETINGS, OPERATOR.
OPERATOR C:\Lab
SHELL>
ILLUSTRATIVE LOCAL TIME · POWERSHELL + WINDOWS TERMINAL DRACULAPowerShell controls the prompt. Windows Terminal controls the surrounding screen and color palette. The prompt below adds your computer’s local date and 24-hour time whenever a new prompt appears—not a clock that ticks while you type.
The purple timestamp, cyan operator and off-white path match the optional ShellWePlay Dracula Windows Terminal scheme. The prompt uses named console colors, so other hosts or palettes can look different. It does not install a theme or change the terminal background. No font or prompt framework is required.
Review the source before use. Automated PowerShell checks are separate from interactive Windows PowerShell 5.1 and Windows Terminal validation, which remains pending.
01 / TRY IT FIRST
A prompt, not an installer.
Download and inspect this complete file. In a fresh PowerShell window, dot-source it from the location where you saved it. It only changes that session. Close the test window to undo it.
#requires -Version 5.1
<#
.SYNOPSIS
A local date/time prompt for the current PowerShell session.
.DESCRIPTION
Review this file, then dot-source it in a new test window. No files,
policies, modules, network connections, or directory objects are changed.
Closing that window restores normal behavior unless you explicitly add
the file to your profile. This replaces the session's prompt function.
The timestamp uses local time and refreshes when PowerShell draws a new
prompt. It is not a constantly ticking clock or a command-duration timer.
Colors use the host's console palette, not embedded ANSI escape sequences.
With the companion ShellWePlay Dracula Windows Terminal scheme selected:
DarkBlue = purple (#BD93F9), DarkCyan = cyan (#8BE9FD), Gray = #F8F8F2.
Other terminal schemes determine their own colors for these same slots.
This script does not install or select a terminal scheme.
.NOTES
ShellWePlay / version 1.1.0. Windows PowerShell 5.1 / PowerShell 7 syntax.
Interactive rendering depends on the host; test in a separate window.
#>
function global:prompt {
# Read the local clock inside the function, once for each new prompt.
$timestamp = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'
Write-Host ''
Write-Host ('[' + $timestamp + '] ') -NoNewline -ForegroundColor DarkBlue
Write-Host 'OPERATOR ' -NoNewline -ForegroundColor DarkCyan
Write-Host (Get-Location).Path -ForegroundColor Gray
# Return a prompt string so PowerShell knows where input begins.
return 'SHELL> '
}
Write-Host 'CONNECTION ESTABLISHED. GREETINGS, OPERATOR.' -ForegroundColor DarkCyan
. "C:\path-to-your-reviewed-file\ShellWePlay.Prompt.ps1"Replace the example path. If your organization's execution policy blocks the file, stop and use its approved process. Do not bypass or weaken the policy for a theme.
02 / KEEP IT, DELIBERATELY
Your profile. Your decision.
On Windows, save the reviewed file as ShellWePlay.Prompt.ps1 in a ShellWePlay folder under your home directory. Create that folder if needed. Then back up your current-host profile before editing it:
if (Test-Path -LiteralPath $PROFILE) {
$backup = "$PROFILE.$(Get-Date -Format 'yyyyMMdd_HHmmss').bak"
if (Test-Path -LiteralPath $backup) { throw "Backup already exists: $backup" }
Copy-Item -LiteralPath $PROFILE -Destination $backup -ErrorAction Stop
} else {
$null = New-Item -ItemType Directory -Path (Split-Path $PROFILE) -Force
$null = New-Item -ItemType File -Path $PROFILE
}
notepad $PROFILEAdd the following lines without replacing existing profile content. Windows PowerShell, PowerShell 7, and different hosts can use different profiles; make the change in the host you actually use.
$swpPrompt = Join-Path $HOME 'ShellWePlay\ShellWePlay.Prompt.ps1'
if (Test-Path -LiteralPath $swpPrompt) {
. $swpPrompt
}Undo
Remove only the ShellWePlay lines you added, or carefully restore your saved profile backup. Open a new shell. Keep any unrelated profile edits you made after the backup.
03 / OPTIONAL COLOR SCHEME
The screen around the shell.
Dracula works in Windows Terminal independently of VS Code. Download the scheme object below. Back up your existing Windows Terminal settings, add this one object to the schemes array, then choose ShellWePlay Dracula under your PowerShell profile’s Appearance settings. The download is not a complete settings file—do not replace yours.
The original scheme is still named ShellWePlay. To undo either theme, select your previous color scheme and remove only the scheme object you added. Other terminal applications have their own theme settings; this JSON is specifically for Windows Terminal.
Official references
Dracula: Windows Terminal palette ↗
Microsoft: PowerShell prompt functions ↗