2024-03-20 17:07:35 +00:00
|
|
|
#!/bin/bash
|
|
|
|
pushd "${BASH_SOURCE%/*}" > /dev/null;
|
2024-03-20 19:37:26 +00:00
|
|
|
configPath="/etc/aliae/aliae.yml";
|
2024-03-20 17:07:35 +00:00
|
|
|
|
|
|
|
. "../../../Common/Config/aliae/install.sh";
|
2024-03-20 21:37:34 +00:00
|
|
|
. "../../../Common/Config/fish/profile.sh";
|
2024-03-20 17:50:31 +00:00
|
|
|
sudo install -Dm644 "../../../Common/Config/aliae/aliae.yml" "$configPath";
|
2024-03-20 17:07:35 +00:00
|
|
|
|
|
|
|
function dump_header() {
|
|
|
|
echo "# aliae";
|
|
|
|
}
|
|
|
|
|
2024-03-20 18:35:46 +00:00
|
|
|
function dump_bash() {
|
2024-03-20 17:07:35 +00:00
|
|
|
echo "#!/bin/bash";
|
|
|
|
dump_header;
|
2024-03-20 18:35:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
dump_bash;
|
2024-03-20 17:07:35 +00:00
|
|
|
echo "export ALIAE_CONFIG='$configPath'";
|
|
|
|
} | sudo tee /etc/profile.d/aliae.sh > /dev/null;
|
|
|
|
|
|
|
|
{
|
|
|
|
echo "aliae init fish | source";
|
2024-03-20 18:35:46 +00:00
|
|
|
echo "aliae completion fish | source";
|
2024-03-20 21:37:34 +00:00
|
|
|
} | addFishProfile "aliae" "aliae";
|
2024-03-20 17:07:35 +00:00
|
|
|
|
|
|
|
popd > /dev/null;
|