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

26 lines
850 B
YAML
Raw Normal View History

2024-03-20 21:43:38 +00:00
alias:
- name: totsch
value: git
2024-03-20 21:42:38 +00:00
env:
2024-03-20 19:51:15 +00:00
- name: POSH_THEME
2024-03-20 21:58:16 +00:00
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
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/conf.d/*.ps1",
"{{ if eq .OS "windows" }}$env:ProgramData{{ else }}/etc{{ end }}/powershell/conf.d/*.ps1"
);
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"