Create script for installing aliae
on Unix
This commit is contained in:
parent
41919727e3
commit
b4320f63eb
3 changed files with 24 additions and 3 deletions
|
@ -5,6 +5,6 @@ yay --noconfirm -Syu \
|
|||
aliae-bin \
|
||||
;
|
||||
|
||||
. "../../../Common/Config/aliae/install.sh";
|
||||
. "../../../Unix/Config/aliae/install.sh";
|
||||
|
||||
popd > /dev/null;
|
||||
|
|
|
@ -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;
|
||||
|
|
23
scripts/Unix/Config/aliae/install.sh
Executable file
23
scripts/Unix/Config/aliae/install.sh
Executable 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;
|
Loading…
Reference in a new issue