diff --git a/scripts/Arch/Software/aliae/install.sh b/scripts/Arch/Software/aliae/install.sh index 431a72e9..91c80393 100755 --- a/scripts/Arch/Software/aliae/install.sh +++ b/scripts/Arch/Software/aliae/install.sh @@ -5,6 +5,6 @@ yay --noconfirm -Syu \ aliae-bin \ ; -. "../../../Common/Config/aliae/install.sh"; +. "../../../Unix/Config/aliae/install.sh"; popd > /dev/null; diff --git a/scripts/Common/Config/aliae/install.sh b/scripts/Common/Config/aliae/install.sh index 43ec8d27..13328dab 100755 --- a/scripts/Common/Config/aliae/install.sh +++ b/scripts/Common/Config/aliae/install.sh @@ -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; diff --git a/scripts/Unix/Config/aliae/install.sh b/scripts/Unix/Config/aliae/install.sh new file mode 100755 index 00000000..de540e53 --- /dev/null +++ b/scripts/Unix/Config/aliae/install.sh @@ -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;