Created
May 1, 2020 12:39
-
-
Save PSingletary/ada8f6b4ecdd6baeebf9fdca9a6464bf to your computer and use it in GitHub Desktop.
Hardlink Windows Terminal Settings to OneDrive Folder - Source: https://jdhitsolutions.com/blog/powershell/7422/backing-up-windows-terminal-settings-with-powershell/
This file contains hidden or 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
$1DrivePath = "C:\users\XXXXXXXXXX\OneDrive\windowsterminal\settings.json" | |
$params = @{ | |
Path = "$ENV:Userprofile\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" | |
ItemType = "HardLink" | |
Value = $1DrivePath | |
} | |
Move-Item -Path $params.path -Destination $params.value | |
New-Item @params |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment