PortValhalla/scripts/Common/Config/aliae/aliae.yml

25 lines
825 B
YAML
Raw Normal View History

2024-03-20 19:51:15 +00:00
alias:
- name: POSH_THEME
value: |
{{ if eq .OS "windows" }}{{ .Home }}/.mnt/Nextcloud/.omp{{ else }}/usr/local/share/oh-my-posh/themes{{ end }}/manuel.omp.json
2024-03-20 15:00:44 +00:00
env: []
path: []
script:
- value: |
2024-03-20 19:37:41 +00:00
[ -n "$(bash -c 'shopt -s nullglob; echo {/etc,~/.config}/bash/conf.d/*')" ] && . {/etc,~/.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;
$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
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"