Install-Module -Name ColorScripts-Enhanced -Scope CurrentUser
Import-Module ColorScripts-Enhanced| Command | Alias | Description |
|---|---|---|
Show-ColorScript |
scs |
Display colorscripts |
Get-ColorScriptList |
- | List available scripts |
New-ColorScriptCache |
- | Pre-generate cache |
Clear-ColorScriptCache |
- | Remove cache files |
Add-ColorScriptProfile |
- | Append module import/startup snippet |
Get-ColorScriptConfiguration |
- | Inspect persisted defaults |
Set-ColorScriptConfiguration |
- | Persist cache/startup preferences |
Reset-ColorScriptConfiguration |
- | Restore configuration defaults |
Export-ColorScriptMetadata |
- | Export metadata and cache info |
New-ColorScript |
- | Scaffold a new colorscript template |
Show-ColorScript
# or
scsShow-ColorScript -Name hearts
scs mandelbrot-zoom
Show-ColorScript -IncludePokemon # Random, including Pokémon scripts
# Direct Pokémon names bypass the default filter (e.g., `Show-ColorScript -Name Pikachu`)Show-ColorScript -List
Get-ColorScriptList
# Object output for automation
Get-ColorScriptList -AsObject | Select-Object Name, Category, Tags
# Filter by metadata
Get-ColorScriptList -Category Patterns -Detailed
Get-ColorScriptList -Tag Recommended# Cache all scripts
New-ColorScriptCache
# Cache specific scripts
New-ColorScriptCache -Name hearts,bars,arch
# Force rebuild
New-ColorScriptCache -ForceRunning
New-ColorScriptCachewithout parameters caches the entire collection (the same as using-All).
# Clear all cache
Clear-ColorScriptCache -All
# Clear specific cache
Clear-ColorScriptCache -Name hearts
# Preview without deleting
Clear-ColorScriptCache -All -WhatIf
# Dry run or alternate cache root
Clear-ColorScriptCache -Name hearts -DryRun
Clear-ColorScriptCache -Name hearts -Path 'C:/temp/colorscripts-cache'Get-ColorScriptConfiguration
Set-ColorScriptConfiguration -CachePath 'D:/Temp/ColorScriptsCache' -ProfileAutoShow:$false
Reset-ColorScriptConfigurationExport-ColorScriptMetadata -IncludeFileInfo -IncludeCacheInfo
Export-ColorScriptMetadata -Path ./dist/colorscripts-metadata.json -IncludeFileInfo$scaffold = New-ColorScript -Name 'my-custom-script' -GenerateMetadataSnippet -Category 'Patterns' -Tag 'Custom'
$scaffold.MetadataGuidance# Sequential with metadata-rich results
.\ColorScripts-Enhanced\Test-AllColorScripts.ps1 -Filter 'bars' -Delay 0 -SkipErrors
# Parallel execution (PowerShell 7+)
.\ColorScripts-Enhanced\Test-AllColorScripts.ps1 -Parallel -SkipErrors -ThrottleLimit 4# Convert ANSI to PowerShell script
node scripts/Convert-AnsiToColorScript.js .\art.ans
# Split a towering ANSI into smaller chunks (auto-detect gaps)
node scripts/Split-AnsiFile.js .\we-ACiDTrip.ANS --auto --dry-run
# Force manual breakpoints and emit ANSI slices instead of PowerShell
node scripts/Split-AnsiFile.js .\we-ACiDTrip.ANS --format=ansi --breaks=360,720
# Split an already converted colorscript
node scripts/Split-AnsiFile.js .\ColorScripts-Enhanced\Scripts\we-acidtrip.ps1 --input=ps1 --heights=320,320
# Split every 120 lines automatically
node scripts/Split-AnsiFile.js .\we-ACiDTrip.ANS --every=120Use --heights=h1,h2,... for sequential segment sizes, --every=<n> for uniform slices, or --breaks=row,row,... for absolute cut points. Combine with --strip-space-bg (ANSI input only) to match our converter's treatment of space backgrounds.
pwsh -NoProfile -Command "& .\scripts\Test-Module.ps1" # Smoke tests + lint gate
Invoke-Pester -Path ./Tests # Full test suite
pwsh -NoProfile -Command "& .\scripts\Lint-Module.ps1" # Standard lint
pwsh -NoProfile -Command "& .\scripts\Lint-Module.ps1" -IncludeTests -TreatWarningsAsErrors
pwsh -NoProfile -Command "& .\scripts\Lint-Module.ps1" -Fix # Apply auto-fixes, then re-run lint
pwsh -NoProfile -Command "& .\scripts\Lint-PS7.ps1" # PowerShell 7-only analyzer with auto-fix# Get command help
Get-Help Show-ColorScript
Get-Help Show-ColorScript -Full
Get-Help Show-ColorScript -Examples
# Module help
Get-Help about_ColorScripts-Enhanced
# List all help topics
Get-Help *ColorScript*Add to your PowerShell profile ($PROFILE):
Add-ColorScriptProfile # Import + Show-ColorScript
Add-ColorScriptProfile -SkipStartupScript # Import only
Add-ColorScriptProfile -Scope CurrentUserCurrentHost- Install a patched font from nerdfonts.com.
- Windows: unzip → select
.ttffiles → right-click → Install for all users. - macOS:
brew install --cask font-caskaydia-cove-nerd-fontor add via Font Book. - Linux: copy
.ttfto~/.local/share/fonts(or/usr/local/share/fonts) and runfc-cache -fv. - Set your terminal profile font to the Nerd Font and verify with
Show-ColorScript -Name nerd-font-test.
- First Run: ~50-300ms (builds cache)
- Cached Run: ~8-16ms (6-19x faster!)
- Pre-build cache:
New-ColorScriptCache - Cache location:
$env:APPDATA\ColorScripts-Enhanced\cache
| Category | Examples |
|---|---|
| Geometric | mandelbrot-zoom, sierpinski-carpet, fractal-tree |
| Nature | galaxy-spiral, aurora-bands, crystal-drift |
| Artistic | kaleidoscope, rainbow-waves, color-morphing |
| Gaming | doom-original, pacman, space-invaders |
| System | colortest, nerd-font-test, terminal-benchmark |
| Logos | arch, debian, ubuntu, windows |
| NerdFont | dev-workspace, cloud-services, data-science |
| Patterns | bars, gradient-bars, hex-blocks |
Show-ColorScript
[-Name <String>] # Script name (without .ps1)
[-List] # List all scripts
[-Random] # Random selection (default)
[-Category <String[]>]
[-Tag <String[]>]
[-NoCache] # Bypass cache
[-PassThru] # Return metadata objectGet-ColorScriptList
[-Category <String[]>]
[-Tag <String[]>]
[-AsObject]
[-Detailed]New-ColorScriptCache
[-Name <String[]>] # Specific scripts
[-All] # All scripts
[-Force] # Rebuild existing cache
[-PassThru] # Return detailed results
[-Quiet] # Suppress summary output
[-NoAnsiOutput] # Disable ANSI in summaryClear-ColorScriptCache
[-Name <String[]>] # Specific scripts
[-All] # All cache files
[-Path <String>] # Alternate cache root
[-DryRun] # Preview deletions
[-PassThru] # Return detailed results
[-Quiet] # Suppress summary output
[-NoAnsiOutput] # Disable ANSI in summary
[-WhatIf]
[-Confirm]Add-ColorScriptProfile
[-Scope <String>] # Profile scope (default CurrentUserAllHosts)
[-Path <String>] # Explicit profile path
[-SkipStartupScript] # Only add Import-Module line
[-IncludePokemon] # Opt-in to Pokémon at startup
[-PokemonPromptResponse <Y|N>] # Pre-answer Pokémon prompt (also respects env/global overrides)
[-SkipCacheBuild] # Do not pre-warm caches when adding the profile
[-Force] # Append even if import already exists
[-WhatIf]
[-Confirm]# In your profile
$seed = (Get-Date).DayOfYear
Get-Random -SetSeed $seed
Show-ColorScriptGet-ColorScriptList | Out-String -Stream |
Where-Object { $_.Trim() } |
ForEach-Object {
$name = $_.Trim().Split()[0]
Show-ColorScript -Name $name
Start-Sleep -Seconds 2
}Get-ChildItem "$env:APPDATA\ColorScripts-Enhanced\cache" -Filter "*galaxy*.cache" |
ForEach-Object {
Show-ColorScript -Name $_.BaseName
}$cacheDir = "$env:APPDATA\ColorScripts-Enhanced\cache"
$caches = Get-ChildItem $cacheDir -Filter *.cache
Write-Host "Cached scripts: $($caches.Count)"
Write-Host "Total cache size: $([math]::Round(($caches | Measure-Object Length -Sum).Sum / 1MB, 2)) MB"# Ensure UTF-8 encoding
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
# Clear and rebuild cache
Clear-ColorScriptCache -All
New-ColorScriptCache# Check cache location
# Windows:
Test-Path "$env:APPDATA\ColorScripts-Enhanced\cache"
# macOS:
Test-Path "~/Library/Application Support/ColorScripts-Enhanced/cache"
# Linux:
Test-Path "~/.cache/ColorScripts-Enhanced"
# Rebuild specific cache
New-ColorScriptCache -Name bars -Force# Pre-build all caches (one-time)
New-ColorScriptCache
# Verify cache exists
Get-ChildItem "$env:APPDATA\ColorScripts-Enhanced\cache" | Measure-Object# Measure cache benefit
$uncached = Measure-Command { Show-ColorScript -Name mandelbrot-zoom -NoCache }
$cached = Measure-Command { Show-ColorScript -Name mandelbrot-zoom }
Write-Host "Improvement: $([math]::Round($uncached.TotalMilliseconds / $cached.TotalMilliseconds, 1))x"# Process all recommended scripts
Get-ColorScriptList -Tag Recommended -AsObject | ForEach-Object {
Show-ColorScript -Name $_.Name
Start-Sleep -Seconds 1
}
# Export to JSON for external tools
Export-ColorScriptMetadata -Path "./scripts.json" -IncludeFileInfo# Pre-build cache for container deployment
New-ColorScriptCache -Force
# Verify all scripts are cached
$cached = @(Get-ChildItem "$env:APPDATA\ColorScripts-Enhanced\cache" -Filter *.cache)
Write-Host "✓ Cached: $($cached.Count) scripts"# Conditional display based on environment
if ($env:CI) {
Show-ColorScript -NoCache # Avoid file I/O in ephemeral environments
} else {
Show-ColorScript # Use cache for faster performance
}# Category distribution
Get-ColorScriptList -AsObject |
Group-Object Category |
ForEach-Object { Write-Host "$($_.Name): $($_.Count) scripts" }
# Find scripts by pattern
Get-ColorScriptList -AsObject |
Where-Object { $_.Tags -contains 'Animated' } |
Select-Object Name, Category- Use
Install-Modulefrom PowerShell Gallery when available - Use
-Scope CurrentUserfor user-only installation - Run
New-ColorScriptCacheafter installation for optimal performance
- Add
Show-ColorScriptto your profile for a colorful greeting - Use aliases:
scsinstead ofShow-ColorScript - Try
-Randommode to discover different scripts
- Run
Add-ColorScriptProfileto add startup integration - Use
Get-ColorScriptConfigurationto verify settings - Backup configuration with
Export-ColorScriptMetadata
- Pre-build cache with
New-ColorScriptCacheafter updates - Use
-NoCacheonly for script development/testing - Monitor cache size:
$env:APPDATA\ColorScripts-Enhanced\cache
- Verify UTF-8 encoding:
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8 - Check module loads:
Get-Module ColorScripts-Enhanced - Test cache:
Clear-ColorScriptCache -All; New-ColorScriptCache - Review help:
Get-Help about_ColorScripts-Enhanced
| Issue | Check | Solution |
|---|---|---|
| Scripts not showing | Terminal encoding | [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 |
| Slow first run | Cache missing | New-ColorScriptCache -Force |
| Garbled characters | Font support | Install Nerd Font or try different script |
| Module not found | Module path | $env:PSModulePath -split ';' |
| Cache errors | Disk space | Clear-ColorScriptCache -All |
| Startup delays | Profile heavy | Use -SkipStartupScript option |
| Goal | Command | Parameters |
|---|---|---|
| Random display | Show-ColorScript |
(none) |
| Specific script | Show-ColorScript |
-Name "bars" |
| With caching | Show-ColorScript |
(default) |
| Skip cache | Show-ColorScript |
-NoCache |
| Get metadata | Show-ColorScript |
-PassThru |
| List view | Show-ColorScript |
-List |
| Browse all | Show-ColorScript |
-All -WaitForInput |
| Goal | Command | Parameters |
|---|---|---|
| All scripts | Get-ColorScriptList |
(none) |
| One category | Get-ColorScriptList |
-Category Geometric |
| Multiple categories | Get-ColorScriptList |
-Category Geometric,Nature |
| By tag | Get-ColorScriptList |
-Tag Recommended |
| Object format | Get-ColorScriptList |
-AsObject |
| Rich details | Get-ColorScriptList |
-Detailed |
- Install:
Install-Module -Name ColorScripts-Enhanced - Import:
Import-Module ColorScripts-Enhanced - Try it:
Show-ColorScript - Explore:
Get-ColorScriptList - Setup:
Add-ColorScriptProfile
- Read Basic Commands section
- Try Examples section (each example)
- Setup profile integration
- Explore categories and tags
- Test performance improvements
- Read Advanced Usage section
- Study Best Practices
- Try Performance Monitoring
- Explore Batch Automation
- Review CI/CD Integration examples
- Study all Advanced Usage examples
- Review Environment Detection patterns
- Study Data Analysis workflows
- Plan custom automation
- Review ANSI-CONVERSION-GUIDE for custom scripts
# Define custom aliases for faster access
Set-Alias -Name cs -Value Show-ColorScript
Set-Alias -Name csl -Value Get-ColorScriptList
Set-Alias -Name csb -Value New-ColorScriptCache
Set-Alias -Name csc -Value Clear-ColorScriptCache# Override cache location
$env:COLORSCRIPTS_CACHE = "D:\MyCache\ColorScripts"
# Set in profile for persistence
$env:PSModulePath += ";C:\CustomModulePath"- Full Help:
Get-Help about_ColorScripts-Enhanced - Command Help:
Get-Help Show-ColorScript -Full - Examples:
Get-Help Show-ColorScript -Examples - GitHub: https://github.com/Nick2bad4u/ps-color-scripts-enhanced
- Issues: https://github.com/Nick2bad4u/ps-color-scripts-enhanced/issues
- Documentation:
./docs/folder in repository
- GitHub: https://github.com/Nick2bad4u/ps-color-scripts-enhanced
- Issues: https://github.com/Nick2bad4u/ps-color-scripts-enhanced/issues
- License: Unlicense
Get-Module ColorScripts-Enhanced | Select-Object VersionCurrent: 2025.11.05
Tip: For detailed documentation, use: Get-Help about_ColorScripts-Enhanced
Last Updated: October 30, 2025 Status: ✅ Production Ready