diff options
| author | srdusr <trevorgray@srdusr.com> | 2024-05-30 03:20:13 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2024-05-30 03:20:13 +0200 |
| commit | 19cf8fe1574a3f9e2e773ef313c41bf9ca07fb0f (patch) | |
| tree | 32ccd021b521328071a02173a446e65c5e56948e /.config | |
| parent | 6d6459b792431c88f4297d29c70041483776ef34 (diff) | |
| download | dotfiles-19cf8fe1574a3f9e2e773ef313c41bf9ca07fb0f.tar.gz dotfiles-19cf8fe1574a3f9e2e773ef313c41bf9ca07fb0f.zip | |
Testing
Diffstat (limited to '.config')
| -rw-r--r-- | .config/powershell/bootstrap.ps1 | 18 |
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 { |
