23 lines
511 B
Bash
Executable file
23 lines
511 B
Bash
Executable file
#!/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;
|