aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2024-05-30 04:17:37 +0200
committersrdusr <trevorgray@srdusr.com>2024-05-30 04:17:37 +0200
commitfa67c7c6463a970660bd94d6d0af88c94d3ede23 (patch)
tree0799d0d89e17dc483e0491e5b53666e5df120bb9
parent997b738cd6b2c7b4a506f4ea0b2b54b1f04fa7f1 (diff)
downloaddotfiles-fa67c7c6463a970660bd94d6d0af88c94d3ede23.tar.gz
dotfiles-fa67c7c6463a970660bd94d6d0af88c94d3ede23.zip
Testing
-rw-r--r--.config/powershell/bootstrap.ps18
1 files changed, 5 insertions, 3 deletions
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"