alias: [] env: [] path: [] script: - value: | [ -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; $profilePaths = @( "$profileRoot/profile.d/*.ps1", "{{ if eq .OS "windows" }}C:/ProgramData{{ else }}/etc/powershell{{ end }}/profile.d" ); foreach ($profilePath in $profilePaths) { if (Test-Path $profilePath) { Get-Item $profilePath | ForEach-Object { . $_; }; } } if: match .Shell "pwsh"