This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $TODO: - These should be cmdlet parameters if you go that far... | |
$bingRootUrl = "https://www.bing.com" | |
$marketLocale = "en-US" | |
$numberOfImages = 1 | |
$bingImageInfoUrl = "$bingRootUrl/HPImageArchive.aspx?format=js&idx=0&n=$numberOfImages&mkt=$marketLocale" | |
# Windows Terminal profiles.json location | |
$profilesJsonLocation = "$env:USERPROFILE\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" | |
function Get-ImageOfTheDayUrl { |