Outline of ideas, concepts to cover, potential projects to write.
- Book with a video for each chapter.
// This file was initially generated by Windows Terminal 1.0.1401.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", | |
// You can add more global application settings here. |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"copyOnSelect": false, | |
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", | |
// Add custom keybindings to this array. | |
// To unbind a key combination from your defaults.json, set the command to "unbound". | |
// To learn more about keybindings, visit https://aka.ms/terminal-keybindings | |
"keybindings": | |
[ | |
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json. |
function Add-Prompt { | |
<# | |
.SYNOPSIS | |
Builds a powerline-style prompt from segments | |
.DESCRIPTION | |
This command is used to build a prompt from existing segments, and automagically will figure out the colors for the | |
separators as necessary. You can insert additional colors into your string with ANSI escape sequences (don't use reset) | |
#> | |
[CmdletBinding()] |
A Windows Terminal Theme based on @sailorhg's Fairy Floss theme
N.B. This uses Powershell as my shell but you can change this by changing the commandline
value in the profile
below!
function Send-SendGridMailMessage { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory)][String[]]$To, | |
[Parameter(Mandatory)][String]$Subject, | |
[String]$Body, | |
[Parameter(Mandatory)][String]$From, | |
[Switch]$BodyAsHtml, | |
[String]$SendGridApiKey = $env:SENDGRID_API_KEY | |
) |
#VSCode Specific Theming | |
if ($env:TERM_PROGRAM -eq 'VSCode') { | |
if ($psedition -eq 'core') { | |
$ansiesc = "`e" | |
} else { | |
$ansiesc = [char]0x1b | |
} | |
Set-PSReadlineOption -Colors @{ | |
Command = "$($ansiesc)[93m" |
throw 'This has moved to https://github.com/JustinGrote/ModuleFast' |
#requires -version 5 | |
function Remove-OldModule { | |
[CmdletBinding(SupportsShouldProcess,ConfirmImpact="High")] | |
param ( | |
#Include deleting old versions of modules that might "ship" with modules | |
[Switch]$IncludeSystemProvidedModules, | |
#Exclude Specified modules. Must match the module name exactly | |
[String[]]$Exclude | |
) |
function Get-GlyphNerdFonts ($Name) { | |
$cache = [Runtime.Caching.MemoryCache]::Default | |
if ($cache['poshglyph-nfcollection']) { | |
$nfCollection = $cache['poshglyph-nfcollection'] | |
} else { | |
[Regex]$glyphRegex = '<span><div class="class-name">(?<name>[\S<>]+)</div><div class="codepoint">(?<codepoint>\w+)</div></span>' | |
$glyphRegexMatches = $glyphRegex.Matches((Invoke-RestMethod -useb 'https://www.nerdfonts.com/')) | |
$nfcollection = [ordered]@{} |