Create script for installing aliae on Unix

This commit is contained in:
Manuel Thalmann 2024-03-20 18:07:35 +01:00
parent 41919727e3
commit b4320f63eb
3 changed files with 24 additions and 3 deletions

View file

@ -5,6 +5,6 @@ yay --noconfirm -Syu \
aliae-bin \
;
. "../../../Common/Config/aliae/install.sh";
. "../../../Unix/Config/aliae/install.sh";
popd > /dev/null;

View file

@ -17,6 +17,4 @@ then
pwsh "./install.ps1";
fi;
echo 'aliae init fish | source' | sudo tee /etc/fish/conf.d/aliae.fish > /dev/null;
cp aliae.yml ~/.aliae.yaml;
popd > /dev/null;

View file

@ -0,0 +1,23 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
configPath="/usr/local/share/aliae/aliae.yml";
. "../../../Common/Config/aliae/install.sh";
sudo install -Dm644 "./aliae.yml" "$configPath";
function dump_header() {
echo "# aliae";
}
{
echo "#!/bin/bash";
dump_header;
echo "export ALIAE_CONFIG='$configPath'";
} | sudo tee /etc/profile.d/aliae.sh > /dev/null;
{
dump_header;
echo "aliae init fish | source";
} | sudo tee /etc/fish/conf.d/aliae.fish > /dev/null;
popd > /dev/null;