zikhan - Overview

1

if ($PROFILE.EndsWith('Microsoft.Powershell_profile.ps1', [System.StringComparison]::CurrentCultureIgnoreCase)) {

2

	if ($PROFILE.IndexOf("OneDrive", [System.StringComparison]::CurrentCultureIgnoreCase) -ge 0) {

3

		$gistlocation = Join-Path $PSScriptRoot 'Microsoft.Powershell_profile.ps1'

4

		Write-Output $gistlocation

5

		Set-Content -Path $PROFILE -Value ". $gistlocation"