PortValhalla/scripts/Unix/Config/aliae/install.sh

29 lines
619 B
Bash
Raw Normal View History

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