aboutsummaryrefslogtreecommitdiff
path: root/.config/powershell
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2024-05-30 03:20:13 +0200
committersrdusr <trevorgray@srdusr.com>2024-05-30 03:20:13 +0200
commit19cf8fe1574a3f9e2e773ef313c41bf9ca07fb0f (patch)
tree32ccd021b521328071a02173a446e65c5e56948e /.config/powershell
parent6d6459b792431c88f4297d29c70041483776ef34 (diff)
downloaddotfiles-19cf8fe1574a3f9e2e773ef313c41bf9ca07fb0f.tar.gz
dotfiles-19cf8fe1574a3f9e2e773ef313c41bf9ca07fb0f.zip
Testing
Diffstat (limited to '.config/powershell')
-rw-r--r--.config/powershell/bootstrap.ps118
1 files changed, 9 insertions, 9 deletions
diff --git a/.config/powershell/bootstrap.ps1 b/.config/powershell/bootstrap.ps1
index cf8f9a5..c655986 100644
--- a/.config/powershell/bootstrap.ps1
+++ b/.config/powershell/bootstrap.ps1
@@ -294,16 +294,16 @@ New-Item -ItemType HardLink -Force `
-Path "$powerShellProfileDir\Microsoft.PowerShell_profile.ps1" `
-Target "$home\.config\powershell\Microsoft.PowerShell_profile.ps1"
-## Set environment variable
-#[System.Environment]::SetEnvironmentVariable('PowerShellProfileDir', $powerShellProfileDir, [System.EnvironmentVariableTarget]::User)
-#
-#Write-Host "PowerShell profile directory set to: $powerShellProfileDir"
-#Write-Host "Environment variable 'PowerShellProfileDir' set to: $powerShellProfileDir"
+# Set environment variable
+[System.Environment]::SetEnvironmentVariable('PowerShellProfileDir', $powerShellProfileDir, [System.EnvironmentVariableTarget]::User)
-## Verify profile sourcing
-#if (!(Test-Path -Path "$home\.config\powershell\Microsoft.PowerShell_profile.ps1")) {
-# handle_error "PowerShell profile does not exist. Please create it at $home\.config\powershell\Microsoft.PowerShell_profile.ps1"
-#}
+Write-Host "PowerShell profile directory set to: $powerShellProfileDir"
+Write-Host "Environment variable 'PowerShellProfileDir' set to: $powerShellProfileDir"
+
+# Verify profile sourcing
+if (!(Test-Path -Path "$home\.config\powershell\Microsoft.PowerShell_profile.ps1")) {
+ handle_error "PowerShell profile does not exist. Please create it at $home\.config\powershell\Microsoft.PowerShell_profile.ps1"
+}
# Define the `config` alias in the current session
function global:config {