2024-03-20 15:00:44 +00:00
|
|
|
alias: []
|
|
|
|
env: []
|
|
|
|
path: []
|
|
|
|
script:
|
|
|
|
- value: |
|
2024-03-20 18:43:40 +00:00
|
|
|
[ -f /bash/conf.d/* ~/.config/bash/conf.d/* ] && . /bash/conf.d/* ~/.config/bash/conf.d/* || true
|
2024-03-20 15:00:44 +00:00
|
|
|
if: match .Shell "bash"
|
|
|
|
- value: |
|
|
|
|
# Profile Files
|
|
|
|
$profileRoot = Split-Path -Parent $PROFILE;
|
2024-03-20 18:43:40 +00:00
|
|
|
$profilePaths = @(
|
|
|
|
"$profileRoot/profile.d/*.ps1",
|
|
|
|
"{{ if eq .OS "windows" }}C:/ProgramData{{ else }}/etc/powershell{{ end }}/profile.d"
|
|
|
|
);
|
2024-03-20 15:00:44 +00:00
|
|
|
|
2024-03-20 18:43:40 +00:00
|
|
|
foreach ($profilePath in $profilePaths) {
|
|
|
|
if (Test-Path $profilePath) {
|
|
|
|
Get-Item $profilePath | ForEach-Object { . $_; };
|
|
|
|
}
|
2024-03-20 15:00:44 +00:00
|
|
|
}
|
|
|
|
if: match .Shell "pwsh"
|