PortValhalla/scripts/Common/Software/aliae/main.fish

42 lines
1.1 KiB
Fish
Raw Normal View History

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
sudo install -Dm644 "$dir/aliae.yml" "$file"
begin
printf %s\n "" \
"# aliae" \
"export ALIAE_CONFIG=$(string escape "$file")" \
'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