aboutsummaryrefslogtreecommitdiff
path: root/.config/powershell
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2024-05-30 04:09:52 +0200
committersrdusr <trevorgray@srdusr.com>2024-05-30 04:09:52 +0200
commit997b738cd6b2c7b4a506f4ea0b2b54b1f04fa7f1 (patch)
tree218b23a642747d3e14804cec7a97fb145cc2937b /.config/powershell
parent197ed0da2733cc8df283fc15ff2c700bc65755e9 (diff)
downloaddotfiles-997b738cd6b2c7b4a506f4ea0b2b54b1f04fa7f1.tar.gz
dotfiles-997b738cd6b2c7b4a506f4ea0b2b54b1f04fa7f1.zip
Testing
Diffstat (limited to '.config/powershell')
-rw-r--r--.config/powershell/bootstrap.ps15
1 files changed, 3 insertions, 2 deletions
diff --git a/.config/powershell/bootstrap.ps1 b/.config/powershell/bootstrap.ps1
index b8e0a21..1438442 100644
--- a/.config/powershell/bootstrap.ps1
+++ b/.config/powershell/bootstrap.ps1
@@ -268,7 +268,7 @@ rm OneDrive -r -force
Write-Host "Configuring PowerShell"
Write-Host "----------------------------------------"
-$UserMyDocumentsPath = [Environment]::GetFolderPath('MyDocuments')
+$UserMyDocumentsPath = [System.Environment]::GetFolderPath('MyDocuments').Replace("OneDrive", "")
$PowerShellProfileDirectory = "$UserMyDocumentsPath\PowerShell"
$PowerShellLegacySymlink = "$UserMyDocumentsPath\WindowsPowerShell"
@@ -276,10 +276,11 @@ $PowerShellProfileTemplate = "$PSScriptRoot\$USERNAME\Documents\PowerShell\Micro
$env:PSModulePath = $env:PSModulePath -replace "\\OneDrive\\Documents\\WindowsPowerShell\\","\.powershell\"
# Set documents path to user's local Documents folder
-$documentsPath = "$env:USERPROFILE\Documents"
+$documentsPath = "$UserMyDocumentsPath"
$powerShellProfileDir = "$documentsPath\PowerShell"
# Output the chosen PowerShell profile directory
+$PROFILE = "$powerShellProfileDir\Microsoft.PowerShell_profile.ps1"
Write-Host "PowerShell profile directory set to: $powerShellProfileDir"
if (-not (Test-Path -Path $powerShellProfileDir)) {