diff --git a/scripts/Common/Config/aliae/aliae.yml b/scripts/Common/Config/aliae/aliae.yml index 27909f62..5ab6855c 100644 --- a/scripts/Common/Config/aliae/aliae.yml +++ b/scripts/Common/Config/aliae/aliae.yml @@ -3,14 +3,19 @@ env: [] path: [] script: - value: | - [ -f /bash/conf.d/* ] && . /bash/conf.d/* || true + [ -f /bash/conf.d/* ~/.config/bash/conf.d/* ] && . /bash/conf.d/* ~/.config/bash/conf.d/* || true if: match .Shell "bash" - value: | # Profile Files $profileRoot = Split-Path -Parent $PROFILE; - $profilePath = "$profileRoot/profile.d/*.ps1"; + $profilePaths = @( + "$profileRoot/profile.d/*.ps1", + "{{ if eq .OS "windows" }}C:/ProgramData{{ else }}/etc/powershell{{ end }}/profile.d" + ); - if (Test-Path $profilePath) { - Get-Item $profilePath | ForEach-Object { . $_; }; + foreach ($profilePath in $profilePaths) { + if (Test-Path $profilePath) { + Get-Item $profilePath | ForEach-Object { . $_; }; + } } if: match .Shell "pwsh"