2024-07-16 01:30:14 +00:00
|
|
|
#!/bin/env fish
|
|
|
|
begin
|
|
|
|
set -l dir (status dirname)
|
|
|
|
source "$dir/../../Scripts/software.fish"
|
|
|
|
|
|
|
|
function installSW
|
|
|
|
configureSW
|
|
|
|
end
|
|
|
|
|
|
|
|
function configureSW -V dir
|
|
|
|
source "$dir/../bash/profile.fish"
|
|
|
|
source "$dir/../fish/profile.fish"
|
|
|
|
set -l file /etc/aliae/aliae.yml
|
2024-07-29 22:53:20 +00:00
|
|
|
echo "export ALIAE_CONFIG=$(string escape "$file")" | sudo tee /etc/profile.d/aliae.sh > /dev/null
|
2024-07-16 01:30:14 +00:00
|
|
|
sudo install -Dm644 "$dir/aliae.yml" "$file"
|
|
|
|
|
|
|
|
begin
|
2024-07-28 14:57:47 +00:00
|
|
|
printf %s\n \
|
2024-07-17 12:18:27 +00:00
|
|
|
"# aliae" \
|
|
|
|
'eval "$(aliae init bash)"' \
|
|
|
|
'eval "$(aliae completion bash)"'
|
2024-07-16 01:30:14 +00:00
|
|
|
end | installBashProfile "aliae" "aliae"
|
|
|
|
|
2024-07-16 01:30:25 +00:00
|
|
|
begin
|
|
|
|
printf %s\n "" \
|
|
|
|
"# aliae" \
|
|
|
|
'eval "$(aliae init bash)"' \
|
|
|
|
'eval "$(aliae completion bash)"'
|
2024-07-17 08:25:41 +00:00
|
|
|
end | sudo tee /etc/skel/.bashrc > /dev/null
|
2024-07-16 01:30:25 +00:00
|
|
|
|
2024-07-16 01:30:14 +00:00
|
|
|
if type -q fish
|
|
|
|
begin
|
|
|
|
printf %s\n \
|
|
|
|
"aliae init fish | source" \
|
|
|
|
"aliae completion fish | source"
|
|
|
|
end | installFishProfile "aliae" "aliae"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
runInstaller $argv
|
|
|
|
end
|