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

29 lines
610 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";
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;
{
dump_header;
echo "aliae init fish | source";
echo "aliae completion fish | source";
} | sudo tee /etc/fish/conf.d/aliae.fish > /dev/null;
popd > /dev/null;