From fa67c7c6463a970660bd94d6d0af88c94d3ede23 Mon Sep 17 00:00:00 2001 From: srdusr Date: Thu, 30 May 2024 04:17:37 +0200 Subject: Testing --- .config/powershell/bootstrap.ps1 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '.config') diff --git a/.config/powershell/bootstrap.ps1 b/.config/powershell/bootstrap.ps1 index 1438442..bb572b4 100644 --- a/.config/powershell/bootstrap.ps1 +++ b/.config/powershell/bootstrap.ps1 @@ -268,7 +268,9 @@ rm OneDrive -r -force Write-Host "Configuring PowerShell" Write-Host "----------------------------------------" -$UserMyDocumentsPath = [System.Environment]::GetFolderPath('MyDocuments').Replace("OneDrive", "") +# Get the "MyDocuments" path for the current user, excluding OneDrive +$UserMyDocumentsPath = [System.Environment]::GetFolderPath('MyDocuments').Replace("OneDrive", "") + "\Documents" + $PowerShellProfileDirectory = "$UserMyDocumentsPath\PowerShell" $PowerShellLegacySymlink = "$UserMyDocumentsPath\WindowsPowerShell" @@ -320,7 +322,7 @@ Add-Content -Path $PROFILE -Value "`nfunction config { git --git-dir=`$env:USERP Add-Content -Path $PROFILE -Value "`n. $PROFILE" # Source the profile immediately to make the alias available -. $PROFILE +#. $PROFILE #echo '. "$HOME\Documents\PowerShell\Microsoft.PowerShell_profile.ps1"' >> $PROFILE @@ -361,7 +363,7 @@ function install_dotfiles { install_dotfiles -. $PROFILE +#. $PROFILE # Install Chocolatey if not installed Write-Host "Installing Chocolatey" -- cgit v1.2.3