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-23 03:56:49 +00:00
|
|
|
value: '{{ if eq .OS "windows" }}{{ .Home }}/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-25 18:19:27 +00:00
|
|
|
while IFS= read -r -d '' file;
|
|
|
|
do
|
|
|
|
. "$file";
|
2024-03-25 18:41:48 +00:00
|
|
|
done < <(find {/etc,~/.config}/bash/conf.d/* -print0 2> /dev/null);
|
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 = @(
|
2024-03-20 22:57:48 +00:00
|
|
|
"$profileRoot/conf.d/*.ps1",
|
|
|
|
"{{ if eq .OS "windows" }}$env:ProgramData{{ else }}/etc{{ end }}/powershell/conf.d/*.ps1"
|
2024-03-20 18:43:40 +00:00
|
|
|
);
|
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"
|