29 lines
862 B
YAML
29 lines
862 B
YAML
alias:
|
|
- name: totsch
|
|
value: git
|
|
env:
|
|
- name: POSH_THEME
|
|
value: '{{ if eq .OS "windows" }}{{ .Home }}/Nextcloud/.omp{{ else }}/usr/local/share/oh-my-posh/themes{{ end }}/manuel.omp.json'
|
|
path: []
|
|
script:
|
|
- value: |
|
|
find {/etc,~/.config}/bash/conf.d/* 2> /dev/null |
|
|
while IFS= read -r -d '' file;
|
|
do
|
|
. "$file";
|
|
done;
|
|
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"
|
|
);
|
|
|
|
foreach ($profilePath in $profilePaths) {
|
|
if (Test-Path $profilePath) {
|
|
Get-Item $profilePath | ForEach-Object { . $_; };
|
|
}
|
|
}
|
|
if: match .Shell "pwsh"
|