Streamline aliae
installation
This commit is contained in:
parent
a761514d2a
commit
5e5bb3e5df
9 changed files with 114 additions and 2 deletions
scripts/Common/Config/aliae
|
@ -1,28 +0,0 @@
|
|||
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: |
|
||||
while IFS= read -r -d '' file;
|
||||
do
|
||||
. "$file";
|
||||
done < <(find {/etc,~/.config}/bash/conf.d/* -print0 2> /dev/null);
|
||||
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"
|
Loading…
Add table
Add a link
Reference in a new issue