Replace aliae
config with default bash
profile
This commit is contained in:
parent
8315b89c6c
commit
005c575320
|
@ -35,6 +35,7 @@ if [ (id -u) -eq 0 ]
|
|||
userdel -r "$name"
|
||||
else
|
||||
copyNixConfig
|
||||
source "$dir/../Software/bash/main.fish"
|
||||
runHook initialize || true
|
||||
runHook installDrivers || true
|
||||
runHook installOS || true
|
||||
|
|
|
@ -6,12 +6,6 @@ env:
|
|||
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;
|
||||
|
|
23
scripts/Common/Software/bash/main.fish
Normal file
23
scripts/Common/Software/bash/main.fish
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/env fish
|
||||
begin
|
||||
set -l dir (status dirname)
|
||||
source "$dir/../../Scripts/software.fish"
|
||||
|
||||
function installSW
|
||||
configureSW
|
||||
end
|
||||
|
||||
function configureSW -V dir
|
||||
begin
|
||||
printf %s\n \
|
||||
"" \
|
||||
"# profile" \
|
||||
"while IFS= read -r -d '' file;" \
|
||||
"do" \
|
||||
'source "$file";' \
|
||||
'done < <(find {/etc,~/.config}/bash/conf.d/* -print0 2> /dev/null);'
|
||||
end | sudo tee -a /etc/skel/.bashrc &> /dev/null
|
||||
end
|
||||
|
||||
runInstaller $argv
|
||||
end
|
Loading…
Reference in a new issue