Skip to content

Instantly share code, notes, and snippets.

View jkavanagh58's full-sized avatar

John J Kavanagh jkavanagh58

View GitHub Profile
@jkavanagh58
jkavanagh58 / coreprofile.ps1
Last active August 8, 2021 14:31
ps core profile
"Loading system functions"
. C:\etc\scripts\system-functions.ps1
"Welcome to PowerShell on {0}" -f $psversiontable.Platform
Function test-onlineprof {
[CmdletBinding()]
Param (
[parameter(Mandatory = $True, ValueFromPipeline = $False,
HelpMessage = "Url to profile gist")]
[System.String]$profOnline = 'https://gist.github.com/jkavanagh58/5e28bcb7475d714f564785bd15e5a120'
)
@jkavanagh58
jkavanagh58 / update-wtsettingsgit.ps1
Created August 8, 2021 20:44
Copy Windows Terminal settings file for sharing/backup
[CmdletBinding()]
Param (
[parameter(Mandatory = $False, ValueFromPipeline = $True,
HelpMessage = "wt settings file")]
[System.IO.FileInfo]$wtSettings = 'C:\Users\johnk\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json',
[parameter(Mandatory = $False, ValueFromPipeline = $False,
HelpMessage = "Name of file for update")]
[System.String]$wtRepoFile = "wt_settings_jkav.json",
[parameter(Mandatory = $False, ValueFromPipeline = $True,
HelpMessage = "Path to local clone")]